|
7 | 7 | strategy: |
8 | 8 | matrix: |
9 | 9 | os: [ubuntu-latest] |
10 | | - python: ["3.9","3.10","3.11", "3.12", "3.13"] |
| 10 | + python: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
11 | 11 | env: |
12 | 12 | OS: ${{ matrix.os }} |
13 | 13 | PYTHON: ${{ matrix.python }} |
14 | 14 | steps: |
15 | | - - uses: actions/checkout@master |
16 | | - - uses: pdm-project/setup-pdm@v4 |
17 | | - with: |
18 | | - python-version: ${{ matrix.python }} |
19 | | - allow-python-prereleases: true |
20 | | - cache: true |
21 | | - - name: install deps |
22 | | - run: | |
23 | | - pdm use -f $PYTHON |
24 | | - pdm install -d |
25 | | - - name: Generate coverage report (default) |
26 | | - run: | |
27 | | - pdm run pytest --cov=aiopenapi3/ --cov-report=xml:./coverage/reports/coverage-default.xml tests/ |
28 | | - pdm run pytest --cov=tests/ --cov-report=xml:./coverage/reports/coverage-default-tests.xml tests/ |
29 | | - - name: install optional deps |
30 | | - run: | |
31 | | - pdm install -G auth,socks |
32 | | - - name: Generate coverage report (options) |
33 | | - run: | |
34 | | - pdm run pytest --cov=aiopenapi3/ --cov-report=xml:./coverage/reports/coverage-optional.xml tests/ |
35 | | - pdm run pytest --cov=tests/ --cov-report=xml:./coverage/reports/coverage-optional-tests.xml tests/ |
36 | | - - name: Upload coverage to Codecov (core) |
37 | | - uses: codecov/codecov-action@v4 |
38 | | - with: |
39 | | - token: ${{ secrets.CODECOV_TOKEN }} |
40 | | - directory: ./coverage/reports/ |
41 | | - files: coverage-default.xml,coverage-optional.xml |
42 | | - env_vars: OS,PYTHON |
43 | | - fail_ci_if_error: false |
44 | | - flags: core |
45 | | - name: codecov-aiopenapi3 |
46 | | - verbose: true |
47 | | - - name: Upload coverage to Codecov (tests) |
48 | | - uses: codecov/codecov-action@v4 |
49 | | - with: |
50 | | - token: ${{ secrets.CODECOV_TOKEN }} |
51 | | - directory: ./coverage/reports/ |
52 | | - files: coverage-default-tests.xml,coverage-optional-tests.xml |
53 | | - env_vars: OS,PYTHON |
54 | | - fail_ci_if_error: false |
55 | | - flags: tests |
56 | | - name: codecov-aiopenapi3-tests |
57 | | - verbose: true |
| 15 | + - uses: actions/checkout@master |
| 16 | + - uses: pdm-project/setup-pdm@v4 |
| 17 | + with: |
| 18 | + python-version: ${{ matrix.python }} |
| 19 | + allow-python-prereleases: true |
| 20 | + cache: true |
| 21 | + - name: install deps |
| 22 | + run: | |
| 23 | + pdm use -f $PYTHON |
| 24 | + pdm install -d |
| 25 | + - name: Generate coverage report (default) |
| 26 | + run: | |
| 27 | + pdm run pytest --cov=aiopenapi3/ --cov-report=xml:./coverage/reports/coverage-default.xml tests/ |
| 28 | + pdm run pytest --cov=tests/ --cov-report=xml:./coverage/reports/coverage-default-tests.xml tests/ |
| 29 | + - name: install optional deps |
| 30 | + run: | |
| 31 | + pdm install -G auth,socks |
| 32 | + - name: Generate coverage report (options) |
| 33 | + run: | |
| 34 | + pdm run pytest --cov=aiopenapi3/ --cov-report=xml:./coverage/reports/coverage-optional.xml tests/ |
| 35 | + pdm run pytest --cov=tests/ --cov-report=xml:./coverage/reports/coverage-optional-tests.xml tests/ |
| 36 | + - name: Upload coverage to Codecov (core) |
| 37 | + uses: codecov/codecov-action@v4 |
| 38 | + with: |
| 39 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 40 | + directory: ./coverage/reports/ |
| 41 | + files: coverage-default.xml,coverage-optional.xml |
| 42 | + env_vars: OS,PYTHON |
| 43 | + fail_ci_if_error: false |
| 44 | + flags: core |
| 45 | + name: codecov-aiopenapi3 |
| 46 | + verbose: true |
| 47 | + - name: Upload coverage to Codecov (tests) |
| 48 | + uses: codecov/codecov-action@v4 |
| 49 | + with: |
| 50 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 51 | + directory: ./coverage/reports/ |
| 52 | + files: coverage-default-tests.xml,coverage-optional-tests.xml |
| 53 | + env_vars: OS,PYTHON |
| 54 | + fail_ci_if_error: false |
| 55 | + flags: tests |
| 56 | + name: codecov-aiopenapi3-tests |
| 57 | + verbose: true |
0 commit comments