You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we can cache .tox in GitHub Actions we could speed up the CI a lot. However, in practice, I find that Tox won't run from a cached .tox directory. It could be worth looking into this.
The workflow is:
name: Python CIon: [push]jobs:
build:
runs-on: ubuntu-lateststrategy:
matrix:
python:
- 3.7
- 3.8steps:
- uses: actions/checkout@v2
- name: Set up Pythonuses: actions/setup-python@v1with:
python-version: ${{ matrix.python }}
- name: Install toxrun: pip install tox
- name: Cache tox environmentsid: cache-toxuses: actions/cache@v1with:
path: .tox# setup.cfg, pyproject.toml, and .pre-commit-config.yaml have# versioning info that would impact the tox environment. hashFiles# only takes a single file path or pattern at the moment.key: ${{ runner.os }}-${{ matrix.python }}-tox-${{ hashFiles('setup.cfg') }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run toxrun: tox -e py,lint,typing # run tox using Python in path
The error is:
Run tox 1s
15
##[error]Process completed with exit code 2.
1
Run tox -e py,lint,typing
6
ERROR: invocation failed (exit code 1), logfile: /home/runner/work/safir/safir/.tox/.package/log/.package-4.log
7
================================== log start ===================================
8
Traceback (most recent call last):
9
File "/opt/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/tox/helper/build_requires.py", line 7, in <module>
10
backend = __import__(backend_spec, fromlist=[None])
11
ModuleNotFoundError: No module named 'setuptools'
12
13
=================================== log end ====================================
14
ERROR: FAIL could not package project - v = InvocationError("/home/runner/work/safir/safir/.tox/.package/bin/python /opt/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/tox/helper/build_requires.py setuptools.build_meta ''", 1)
15
##[error]Process completed with exit code 2.
The text was updated successfully, but these errors were encountered:
If we can cache
.tox
in GitHub Actions we could speed up the CI a lot. However, in practice, I find that Tox won't run from a cached.tox
directory. It could be worth looking into this.The workflow is:
The error is:
The text was updated successfully, but these errors were encountered: