|
6 | 6 | - main
|
7 | 7 | pull_request:
|
8 | 8 | branches:
|
9 |
| - - '**' # run on all branches |
| 9 | + - "**" # run on all branches |
10 | 10 |
|
11 | 11 | jobs:
|
12 | 12 | build:
|
13 | 13 | runs-on: ubuntu-latest
|
14 | 14 | strategy:
|
15 | 15 | matrix:
|
16 |
| - python-version: ['3.9', '3.10', '3.11', '3.12'] |
| 16 | + python-version: ["3.9", "3.10", "3.11", "3.12"] |
17 | 17 | 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 }} |
39 | 39 |
|
40 | 40 | coverage:
|
41 | 41 | name: Process test coverage
|
42 | 42 | runs-on: ubuntu-latest
|
43 | 43 | needs: ["build"]
|
44 | 44 | strategy:
|
45 | 45 | matrix:
|
46 |
| - python-version: ["3.11"] |
| 46 | + python-version: ["3.12"] |
47 | 47 | 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