diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 537d0ea..6b5d478 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/tox-install-command b/tox-install-command index d75f3f3..201fb8c 100644 --- a/tox-install-command +++ b/tox-install-command @@ -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"