Skip to content

Commit

Permalink
Run test cases on push, or weekly
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Nov 8, 2024
1 parent b73b7f9 commit e55f87f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build

on:
push:
pull_request:
schedule:
- cron: "13 1 * * 5" # Run weekly at a randomly-picked time

jobs:
build:

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
imp-branch: [main, develop]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup conda
run: |
support/tutorial_tools/setup_ci.sh ${{ matrix.imp-branch }} ${{ matrix.python-version }}
- name: Test
run: |
eval "$(conda shell.bash hook)"
conda activate python${{ matrix.python-version }}
pytest support/test/*.py -v

0 comments on commit e55f87f

Please sign in to comment.