fast tests #122
Workflow file for this run
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: fast tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- '8.*.x' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false # don't stop on first failure | |
matrix: | |
os: ['macos-14'] | |
python-version: ['3.7', '3'] | |
env: | |
TZ: ${{ matrix.time-zone }} | |
PYTEST_ADDOPTS: --cov --cov-append -n 5 --color=yes | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Apt-Get Install | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y sqlite3 | |
- name: Install | |
run: | | |
pip install -e ."[all]" | |
- name: Configure git # Needed by the odd test | |
uses: cylc/release-actions/configure-git@v1 | |
- name: Unit Tests | |
timeout-minutes: 5 | |
run: | | |
pytest cylc/flow tests/unit | |
- name: Integration Tests | |
timeout-minutes: 6 | |
run: | | |
pytest tests/integration | |
- name: Upload failed tests artifact | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cylc-run (${{ matrix.os }} py-${{ matrix.python-version }}) | |
path: ~/cylc-run/ | |
- name: Coverage report | |
run: | | |
coverage xml | |
coverage report |