Merge pull request #33 from scipp/varargs #154
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- release | |
pull_request: | |
jobs: | |
formatting: | |
name: Formatting and static analysis | |
runs-on: 'ubuntu-20.04' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- run: python -m pip install --upgrade pip | |
- run: python -m pip install -r requirements/ci.txt | |
- run: tox -e static | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply automatic formatting | |
tests: | |
name: Tests | |
needs: formatting | |
strategy: | |
matrix: | |
os: ['ubuntu-20.04'] | |
tox-env: [py38, dask, mypy] | |
include: | |
- python-version: '3.8' | |
uses: ./.github/workflows/test.yml | |
with: | |
os-variant: ${{ matrix.os }} | |
python-version: ${{ matrix.python-version }} | |
tox-env: ${{ matrix.tox-env }} | |
docs: | |
needs: tests | |
uses: ./.github/workflows/docs.yml | |
with: | |
publish: false | |
version: ${{ github.ref_name }} | |
branch: ${{ github.head_ref == '' && github.ref_name || github.head_ref }} |