Lock tox to v3 in GitHub Action

This commit is contained in:
ocavue 2022-12-20 15:44:01 +08:00
parent ae8ac9cf18
commit 479b425ae1
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"