From 5268495ef33a5e47e878f24a83f50722d9cef0af Mon Sep 17 00:00:00 2001 From: sgbaird Date: Sat, 10 Dec 2022 22:02:31 -0700 Subject: [PATCH 1/5] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f626ec9..da08d90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: wheel-distribution: ${{ steps.wheel-distribution.outputs.path }} steps: - name: check if tox is installed - run: pipx list | grep tox + run: tox - uses: actions/checkout@v3 with: {fetch-depth: 0} # deep clone for setuptools-scm - uses: actions/setup-python@v4 From 9ba540578da44614c2ad8e09a33e883df4a6b865 Mon Sep 17 00:00:00 2001 From: sgbaird Date: Sat, 10 Dec 2022 22:03:21 -0700 Subject: [PATCH 2/5] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da08d90..0e0994f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,12 +29,12 @@ jobs: outputs: wheel-distribution: ${{ steps.wheel-distribution.outputs.path }} steps: - - name: check if tox is installed - run: tox - uses: actions/checkout@v3 with: {fetch-depth: 0} # deep clone for setuptools-scm - uses: actions/setup-python@v4 with: {python-version: "3.10"} + - name: check tox installed + run: tox - name: Run static analysis and format checkers run: pipx run pre-commit run --all-files --show-diff-on-failure - name: Build package distribution files From 10beef28cc5983c5506f673ae9ef9894782b006d Mon Sep 17 00:00:00 2001 From: sgbaird Date: Sat, 10 Dec 2022 22:07:48 -0700 Subject: [PATCH 3/5] Update ci.yml --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e0994f..6644e43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,12 +33,10 @@ jobs: with: {fetch-depth: 0} # deep clone for setuptools-scm - uses: actions/setup-python@v4 with: {python-version: "3.10"} - - name: check tox installed - run: tox - name: Run static analysis and format checkers run: pipx run pre-commit run --all-files --show-diff-on-failure - name: Build package distribution files - run: pipx run tox -e clean,build + run: pipx run --spec tox==3.27.1 tox -e clean,build - name: Record the path of wheel distribution id: wheel-distribution run: echo "::set-output name=path::$(ls dist/*.whl)" From bf30b34ba257e1792f5aa5c0c47ec6d39eeb6a1e Mon Sep 17 00:00:00 2001 From: sgbaird Date: Sat, 10 Dec 2022 22:09:13 -0700 Subject: [PATCH 4/5] Update ci.yml --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6644e43..94f024f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,11 +69,6 @@ jobs: - name: Retrieve pre-built distribution files uses: actions/download-artifact@v3 with: {name: python-distribution-files, path: dist/} - - name: Print tox version, install new, then print version again - run: | - pipx run tox --version - pipx install tox==v4.0.0rc4 - pipx run tox --version - name: Run tests run: >- pipx run tox From 9560f1ce03c10b8e4dfe879f6a426e9b43c3f557 Mon Sep 17 00:00:00 2001 From: sgbaird Date: Sat, 10 Dec 2022 22:11:08 -0700 Subject: [PATCH 5/5] pin tox everywhere with run --spec tox==3.27.1 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94f024f..4e0c6b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: with: {name: python-distribution-files, path: dist/} - name: Run tests run: >- - pipx run tox + pipx run --spec tox==3.27.1 tox --installpkg '${{ needs.prepare.outputs.wheel-distribution }}' -- -rFEx --durations 10 --color yes - name: Generate coverage report @@ -113,4 +113,4 @@ jobs: TWINE_REPOSITORY: pypi TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: pipx run tox -e publish + run: pipx run --spec tox==3.27.1 tox -e publish