Skip to content

Commit

Permalink
First pass inspired by signac-dashboard and freud actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbkerr committed Nov 3, 2023
1 parent 733eeaa commit 77d84b4
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Run Unit 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
activate-environment: test
show-channel-urls: true
miniforge-variant: Mambaforge
use-mamba: true
- name: Test project ${{ matrix.project }}
run: |
python flow-test.py ${{ matrix.subproject }} -vv --timeout=600 $@
- uses: codecov/codecov-action@v3

0 comments on commit 77d84b4

Please sign in to comment.