Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 3a96ac0

Browse files
author
John Andersen
authored
ci: testing: Enable more Python versions
Update setup-python to v4 which handles caching
1 parent 671ded4 commit 3a96ac0

File tree

1 file changed

+9
-28
lines changed

1 file changed

+9
-28
lines changed

.github/workflows/testing.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,11 @@ jobs:
1313
python-version: [3.7]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: ${{ matrix.python-version }}
21-
- name: Get pip cache
22-
id: pip-cache
23-
run: |
24-
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
25-
- name: pip cache
26-
uses: actions/cache@v1
27-
with:
28-
path: ${{ steps.pip-cache.outputs.dir }}
29-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
30-
restore-keys: |
31-
${{ runner.os }}-pip-
3221
- name: Install dependencies
3322
run: |
3423
pip install -U .[dev]
@@ -43,26 +32,18 @@ jobs:
4332
max-parallel: 40
4433
matrix:
4534
python-version:
46-
- 3.7
47-
- 3.8
35+
- "3.7"
36+
- "3.8"
37+
- "3.9"
38+
- "3.10"
39+
- "3.11"
4840

4941
steps:
50-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v3
5143
- name: Set up Python ${{ matrix.python-version }}
52-
uses: actions/setup-python@v1
44+
uses: actions/setup-python@v4
5345
with:
5446
python-version: ${{ matrix.python-version }}
55-
- name: Get pip cache
56-
id: pip-cache
57-
run: |
58-
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
59-
- name: pip cache
60-
uses: actions/cache@v1
61-
with:
62-
path: ${{ steps.pip-cache.outputs.dir }}
63-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
64-
restore-keys: |
65-
${{ runner.os }}-pip-
6647
- name: Install dependencies
6748
run: |
6849
set -x

0 commit comments

Comments
 (0)