fast tests #163
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: | |
lint: | |
runs-on: 'ubuntu-latest' | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.9, 3] | |
steps: | |
- name: Apt-Get Install | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y shellcheck | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# note: exclude python 3.10+ from mypy checks as these produce false | |
# positives in installed libraries for python 3.7 | |
- name: Configure Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: | | |
pip install -e ."[tests]" | |
- name: Flake8 | |
run: flake8 | |
- name: Bandit | |
run: | | |
bandit -r --ini .bandit cylc/flow | |
- name: Shellchecker | |
run: etc/bin/shellchecker | |
- name: MyPy | |
run: mypy --python-version 3.8 | |
- name: Towncrier - draft changelog | |
uses: cylc/release-actions/towncrier-draft@v1 | |
- name: Linkcheck | |
run: pytest -m linkcheck --dist=load --color=yes -n 10 tests/unit/test_links.py |