Weekly Stability Test #201
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Weekly Stability Test | |
on: | |
workflow_dispatch: # run on request (no need for PR) | |
schedule: | |
# every 7PM on Sunday | |
- cron: "0 19 * * 0" | |
# This is what will cancel the workflow concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
weekly_stability_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
extra: ['default', 'tf', 'tfds', 'torch'] | |
include: | |
- python-version: "3.9" | |
tox-env-py: "39" | |
- python-version: "3.10" | |
tox-env-py: "310" | |
- python-version: "3.11" | |
tox-env-py: "311" | |
name: stability test (Python ${{ matrix.python-version }}, Extra ${{ matrix.extra }}) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Installing python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Installing dependencies | |
run: | | |
python -m pip install tox | |
- name: Stability testing | |
run: | | |
tox -e stability-${{ matrix.extra }} | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: stability-${{ matrix.python-version }}-${{ matrix.extra }} | |
path: .tox/stability-${{ matrix.extra }}/log | |
call-notify-to-teams: | |
needs: [weekly_stability_test] | |
if: | | |
always() && | |
contains(needs.*.result, 'failure') | |
uses: ./.github/workflows/notify_teams.yml | |
secrets: inherit |