From 4e253d290370bc94ba867dff15fed7f55d58bf41 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Sat, 21 Sep 2024 22:41:59 -0600 Subject: [PATCH 1/2] gh-actions: Enable setup-python cache --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 79b7c67..71bdc60 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,6 +40,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.py }} + cache: 'pip' - name: Install tox-gh run: python -m pip install tox-gh>=1.2 - name: Setup test suite From 6252c3e3d397309c64806fd6e312167fcd86d3b2 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Sun, 22 Sep 2024 00:13:06 -0600 Subject: [PATCH 2/2] gh-actions: fix warnings by upgrading actions, suppressing pip nag --- .github/workflows/codespell.yml | 2 +- .github/workflows/tests.yml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 3ebbf55..22cdd28 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -17,6 +17,6 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Codespell uses: codespell-project/actions-codespell@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 71bdc60..8cf8de7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,6 +14,9 @@ on: permissions: contents: read +env: + PIP_DISABLE_PIP_VERSION_CHECK: 1 + jobs: test: name: test with ${{ matrix.py }} on ${{ matrix.os }} @@ -32,12 +35,12 @@ jobs: env: SKIP_ENVS: ${{ (matrix.py != '3.12' || matrix.os == 'windows-latest') && '--skip-env=cli' || '' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: ${{ matrix.py == '3.12' && matrix.os != 'windows-latest' && 'true' || 'false' }} - name: Setup python for test ${{ matrix.py }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.py }} cache: 'pip'