Migrate to GitHub Actions CI #7
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: Project Tests | |
on: | |
# trigger on pull requests | |
pull_request: | |
# trigger on all commits to main | |
push: | |
branches: | |
- 'main' | |
# trigger on request | |
workflow_dispatch: | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - windows-latest | |
# - macos-latest | |
config: | |
# - python: '3.8' | |
# - python: '3.9' | |
- python: '3.10' | |
# - python: '3.11' | |
# - python: '3.12' | |
project: | |
- 'flow.minimal' | |
- 'flow.hello-world' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
- name: Create Python Environment | |
uses: conda-incubator/[email protected] | |
with: | |
python-version: ${{ matrix.config.python }} | |
environment-file: environment.yml | |
channels: conda-forge | |
show-channel-urls: true | |
miniforge-version: latest | |
use-mamba: true | |
- name: Test project ${{ matrix.project }} | |
shell: bash -el {0} # Required for conda activation | |
run: | | |
conda activate test | |
python projects/flow-test.py ${{ matrix.subproject }} -vv --timeout=600 $@ |