|
22 | 22 | CACHED_BUILD_PATHS: | |
23 | 23 | ${{ github.workspace }}/dist-serverless |
24 | 24 | jobs: |
25 | | - test-tasks-latest: |
26 | | - name: Tasks (latest) |
27 | | - timeout-minutes: 30 |
28 | | - runs-on: ${{ matrix.os }} |
29 | | - strategy: |
30 | | - fail-fast: false |
31 | | - matrix: |
32 | | - python-version: ["3.7","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-22.04] |
38 | | - # Use Docker container only for Python 3.6 |
39 | | - container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }} |
40 | | - steps: |
41 | | - - uses: actions/checkout@v5.0.0 |
42 | | - - uses: actions/setup-python@v6 |
43 | | - if: ${{ matrix.python-version != '3.6' }} |
44 | | - with: |
45 | | - python-version: ${{ matrix.python-version }} |
46 | | - allow-prereleases: true |
47 | | - - name: Start Redis |
48 | | - uses: supercharge/redis-github-action@1.8.0 |
49 | | - - name: Install Java |
50 | | - uses: actions/setup-java@v5 |
51 | | - with: |
52 | | - distribution: 'temurin' |
53 | | - java-version: '21' |
54 | | - - name: Setup Test Env |
55 | | - run: | |
56 | | - pip install "coverage[toml]" tox |
57 | | - - name: Erase coverage |
58 | | - run: | |
59 | | - coverage erase |
60 | | - - name: Test arq latest |
61 | | - run: | |
62 | | - set -x # print commands that are executed |
63 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" |
64 | | - - name: Test beam latest |
65 | | - run: | |
66 | | - set -x # print commands that are executed |
67 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" |
68 | | - - name: Test celery latest |
69 | | - run: | |
70 | | - set -x # print commands that are executed |
71 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" |
72 | | - - name: Test dramatiq latest |
73 | | - run: | |
74 | | - set -x # print commands that are executed |
75 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-dramatiq-latest" |
76 | | - - name: Test huey latest |
77 | | - run: | |
78 | | - set -x # print commands that are executed |
79 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" |
80 | | - - name: Test ray latest |
81 | | - run: | |
82 | | - set -x # print commands that are executed |
83 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-ray-latest" |
84 | | - - name: Test rq latest |
85 | | - run: | |
86 | | - set -x # print commands that are executed |
87 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" |
88 | | - - name: Test spark latest |
89 | | - run: | |
90 | | - set -x # print commands that are executed |
91 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-spark-latest" |
92 | | - - name: Generate coverage XML (Python 3.6) |
93 | | - if: ${{ !cancelled() && matrix.python-version == '3.6' }} |
94 | | - run: | |
95 | | - export COVERAGE_RCFILE=.coveragerc36 |
96 | | - coverage combine .coverage-sentry-* |
97 | | - coverage xml --ignore-errors |
98 | | - - name: Generate coverage XML |
99 | | - if: ${{ !cancelled() && matrix.python-version != '3.6' }} |
100 | | - run: | |
101 | | - coverage combine .coverage-sentry-* |
102 | | - coverage xml |
103 | | - - name: Upload coverage to Codecov |
104 | | - if: ${{ !cancelled() }} |
105 | | - uses: codecov/codecov-action@v5.5.1 |
106 | | - with: |
107 | | - token: ${{ secrets.CODECOV_TOKEN }} |
108 | | - files: coverage.xml |
109 | | - # make sure no plugins alter our coverage reports |
110 | | - plugins: noop |
111 | | - verbose: true |
112 | | - - name: Upload test results to Codecov |
113 | | - if: ${{ !cancelled() }} |
114 | | - uses: codecov/test-results-action@v1 |
115 | | - with: |
116 | | - token: ${{ secrets.CODECOV_TOKEN }} |
117 | | - files: .junitxml |
118 | | - verbose: true |
119 | 25 | test-tasks-pinned: |
120 | 26 | name: Tasks (pinned) |
121 | 27 | timeout-minutes: 30 |
|
0 commit comments