Skip to content

Commit 8714a87

Browse files
authored
Use non-system env in CI
1 parent 72346a5 commit 8714a87

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
envlist: ${{ steps.generate-tox-envlist.outputs.envlist }}
1616
steps:
1717
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.12
21+
cache: pip
1822
- run: pip install tox tox-gh-matrix
1923
- id: generate-tox-envlist
2024
run: python -m tox --gh-matrix
@@ -43,14 +47,15 @@ jobs:
4347
# Maps port 6379 on service container to the host
4448
- 6379:6379
4549
steps:
46-
- uses: actions/checkout@v4
47-
- name: Setup Python ${{ matrix.tox.python.version }}
48-
uses: actions/setup-python@v5
49-
with:
50-
python-version: ${{ matrix.tox.python.spec }}
51-
- name: Install dependencies
52-
run: pip install tox codecov
53-
- name: Tox tests
54-
run: python -m tox -v -e ${{ matrix.tox.name }}
55-
- name: Upload coverage
56-
run: python -m codecov --name "Python ${{ matrix.tox.python.spec }}"
50+
- uses: actions/checkout@v4
51+
- name: Setup Python ${{ matrix.tox.python.version }}
52+
uses: actions/setup-python@v5
53+
with:
54+
python-version: ${{ matrix.tox.python.spec }}
55+
cache: pip
56+
- name: Install dependencies
57+
run: pip install tox codecov
58+
- name: Tox tests
59+
run: python -m tox -v -e ${{ matrix.tox.name }}
60+
- name: Upload coverage
61+
run: python -m codecov --name "Python ${{ matrix.tox.python.spec }}"

0 commit comments

Comments
 (0)