|
22 | 22 | CACHED_BUILD_PATHS: | |
23 | 23 | ${{ github.workspace }}/dist-serverless |
24 | 24 | jobs: |
25 | | - test-graphql-latest: |
26 | | - name: GraphQL (latest) |
27 | | - timeout-minutes: 30 |
28 | | - runs-on: ${{ matrix.os }} |
29 | | - strategy: |
30 | | - fail-fast: false |
31 | | - matrix: |
32 | | - python-version: ["3.7","3.8","3.12","3.13"] |
33 | | - # python3.6 reached EOL and is no longer being supported on |
34 | | - # new versions of hosted runners on Github Actions |
35 | | - # ubuntu-20.04 is the last version that supported python3.6 |
36 | | - # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 |
37 | | - os: [ubuntu-20.04] |
38 | | - steps: |
39 | | - |
40 | | - - uses: actions/setup-python@v5 |
41 | | - with: |
42 | | - python-version: ${{ matrix.python-version }} |
43 | | - allow-prereleases: true |
44 | | - - name: Setup Test Env |
45 | | - run: | |
46 | | - pip install "coverage[toml]" tox |
47 | | - - name: Erase coverage |
48 | | - run: | |
49 | | - coverage erase |
50 | | - - name: Test ariadne latest |
51 | | - run: | |
52 | | - set -x # print commands that are executed |
53 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" |
54 | | - - name: Test gql latest |
55 | | - run: | |
56 | | - set -x # print commands that are executed |
57 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" |
58 | | - - name: Test graphene latest |
59 | | - run: | |
60 | | - set -x # print commands that are executed |
61 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" |
62 | | - - name: Test strawberry latest |
63 | | - run: | |
64 | | - set -x # print commands that are executed |
65 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" |
66 | | - - name: Generate coverage XML (Python 3.6) |
67 | | - if: ${{ !cancelled() && matrix.python-version == '3.6' }} |
68 | | - run: | |
69 | | - export COVERAGE_RCFILE=.coveragerc36 |
70 | | - coverage combine .coverage-sentry-* |
71 | | - coverage xml --ignore-errors |
72 | | - - name: Generate coverage XML |
73 | | - if: ${{ !cancelled() && matrix.python-version != '3.6' }} |
74 | | - run: | |
75 | | - coverage combine .coverage-sentry-* |
76 | | - coverage xml |
77 | | - - name: Upload coverage to Codecov |
78 | | - if: ${{ !cancelled() }} |
79 | | - |
80 | | - with: |
81 | | - token: ${{ secrets.CODECOV_TOKEN }} |
82 | | - files: coverage.xml |
83 | | - # make sure no plugins alter our coverage reports |
84 | | - plugin: noop |
85 | | - verbose: true |
86 | | - - name: Upload test results to Codecov |
87 | | - if: ${{ !cancelled() }} |
88 | | - uses: codecov/test-results-action@v1 |
89 | | - with: |
90 | | - token: ${{ secrets.CODECOV_TOKEN }} |
91 | | - files: .junitxml |
92 | | - verbose: true |
93 | 25 | test-graphql-pinned: |
94 | 26 | name: GraphQL (pinned) |
95 | 27 | timeout-minutes: 30 |
96 | 28 | runs-on: ${{ matrix.os }} |
97 | 29 | strategy: |
98 | 30 | fail-fast: false |
99 | 31 | matrix: |
100 | | - python-version: ["3.7","3.8","3.11","3.12"] |
| 32 | + python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"] |
101 | 33 | # python3.6 reached EOL and is no longer being supported on |
102 | 34 | # new versions of hosted runners on Github Actions |
103 | 35 | # ubuntu-20.04 is the last version that supported python3.6 |
|
144 | 76 | coverage xml |
145 | 77 | - name: Upload coverage to Codecov |
146 | 78 | if: ${{ !cancelled() }} |
147 | | - uses: codecov/codecov-action@v5.1.2 |
| 79 | + uses: codecov/codecov-action@v5.3.1 |
148 | 80 | with: |
149 | 81 | token: ${{ secrets.CODECOV_TOKEN }} |
150 | 82 | files: coverage.xml |
|
0 commit comments