Merge pull request #366 from ocavue/ocavue/fix-tox
fix ci by installing tox v3
This commit is contained in:
commit
ad4a4a4661
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -57,15 +57,15 @@ jobs:
|
||||
sudo apt-get install -y pyqt5-dev-tools xvfb jq
|
||||
|
||||
- name: Setup Python ${{ matrix.python }}
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Install tox
|
||||
run: pip install tox
|
||||
run: pip install 'tox==3.28.0'
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run tests
|
||||
run: tox -vvve ${{ matrix.environment }} -- --forked --verbose
|
||||
|
@ -13,7 +13,7 @@ upload_time=$(curl https://pypi.org/pypi/anki/json \
|
||||
| jq --arg v "$version" -r '.releases[$v][0].upload_time_iso_8601')
|
||||
cutoff_time=$(date --utc -d "$upload_time +1 hour" '+%Y-%m-%dT%H:%M:%S')
|
||||
|
||||
coproc SERVER { "$toxworkdir"/.tox/bin/python -um pypi_timemachine "$cutoff_time"; }
|
||||
coproc SERVER { "$toxworkdir"/bin/python -um pypi_timemachine "$cutoff_time"; }
|
||||
index_url=$(print_first_group '(http\S+)' <&"${SERVER[0]}")
|
||||
|
||||
python -m pip install --index-url "$index_url" "anki==$version" "$AQT==$version"
|
||||
|
Loading…
Reference in New Issue
Block a user