Skip to content

Commit 6656ab7

Browse files
committed
ci(github): checkout before using custom actions; temporary reduce pythons matrix; cosmetic change in action (name to pip cache step)
1 parent 234cf1b commit 6656ab7

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/actions/setup-python-pip-tox/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Setup base (checkout, python, pip cache, tox)
22
runs:
33
using: "composite"
44
steps:
5-
- uses: actions/checkout@v5
6-
- uses: actions/setup-python@v6
7-
with:
8-
python-version: ${{ inputs.python }}
9-
- uses: actions/cache@v4
5+
- name: pip cache
6+
uses: actions/cache@v4
107
with:
118
path: |
129
~/.cache/pip
1310
key: ${{ runner.os }}-pip-${{ inputs.python }}
11+
- uses: actions/setup-python@v6
12+
with:
13+
python-version: ${{ inputs.python }}
1414
- run: |
1515
python -m pip -q install --upgrade pip "setuptools==65.6.2"
1616
pip -q install "tox<4" tox-gh-actions

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
continue-on-error: true
1212
runs-on: ubuntu-latest
1313
steps:
14+
- uses: actions/checkout@v5
1415
- uses: ./.github/actions/setup-python-pip-tox
1516
with:
1617
python: 3.12
@@ -23,12 +24,13 @@ jobs:
2324
os: [ ubuntu-latest ]
2425
python:
2526
- "3.12"
26-
- "3.11"
27-
- "3.10"
28-
- "3.9.14"
29-
- "3.8"
27+
#- "3.11"
28+
#- "3.10"
29+
#- "3.9.14"
30+
#- "3.8"
3031
runs-on: ${{ matrix.os }}
3132
steps:
33+
- uses: actions/checkout@v5
3234
- uses: ./.github/actions/setup-python-pip-tox
3335
with:
3436
python: ${{ matrix.python }}

0 commit comments

Comments
 (0)