Skip to content

Commit 81fe6e8

Browse files
committed
use download v4 too
1 parent c3d3bd7 commit 81fe6e8

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

.github/workflows/ci.yml

+46-46
Original file line numberDiff line numberDiff line change
@@ -6,64 +6,64 @@ on:
66
- main
77
pull_request:
88
branches:
9-
- '**' # run on all branches
9+
- "**" # run on all branches
1010

1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ['3.9', '3.10', '3.11', '3.12']
16+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1717
steps:
18-
- uses: actions/checkout@v4
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
cache: 'pip'
24-
cache-dependency-path: |
25-
requirements/production.txt
26-
requirements/testing.txt
27-
.pre-commit-config.yaml
28-
- name: Install dependencies
29-
run: |
30-
pip install -r requirements/testing.txt
31-
- name: CI
32-
run: |
33-
tox
34-
- name: Upload coverage artifact
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: coverage-${{ matrix.python-version }}
38-
path: .coverage
18+
- uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
cache: "pip"
24+
cache-dependency-path: |
25+
requirements/production.txt
26+
requirements/testing.txt
27+
.pre-commit-config.yaml
28+
- name: Install dependencies
29+
run: |
30+
pip install -r requirements/testing.txt
31+
- name: CI
32+
run: |
33+
tox
34+
- name: Upload coverage artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: coverage-${{ matrix.python-version }}
38+
path: .coverage.${{ matrix.python-version }}
3939

4040
coverage:
4141
name: Process test coverage
4242
runs-on: ubuntu-latest
4343
needs: ["build"]
4444
strategy:
4545
matrix:
46-
python-version: ["3.11"]
46+
python-version: ["3.12"]
4747
steps:
48-
- uses: actions/checkout@v4
49-
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v5
51-
with:
52-
python-version: ${{ matrix.python-version }}
53-
cache: 'pip'
54-
cache-dependency-path: |
55-
requirements/production.txt
56-
requirements/testing.txt
57-
.pre-commit-config.yaml
58-
- name: Install dependencies
59-
run: |
60-
pip install -r requirements/testing.txt
61-
- name: Download all coverage artifacts
62-
uses: actions/download-artifact@v3
63-
- name: Create coverage report
64-
run: |
65-
coverage combine coverage*/.coverage*
66-
coverage report --fail-under=94
67-
coverage xml
68-
- name: Upload coverage to Codecov
69-
uses: codecov/codecov-action@v3
48+
- uses: actions/checkout@v4
49+
- name: Set up Python ${{ matrix.python-version }}
50+
uses: actions/setup-python@v5
51+
with:
52+
python-version: ${{ matrix.python-version }}
53+
cache: "pip"
54+
cache-dependency-path: |
55+
requirements/production.txt
56+
requirements/testing.txt
57+
.pre-commit-config.yaml
58+
- name: Install dependencies
59+
run: |
60+
pip install -r requirements/testing.txt
61+
- name: Download all coverage artifacts
62+
uses: actions/download-artifact@v4
63+
- name: Create coverage report
64+
run: |
65+
coverage combine coverage-*/.coverage.*
66+
coverage report --fail-under=94
67+
coverage xml
68+
- name: Upload coverage to Codecov
69+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)