Skip to content

Commit a49a855

Browse files
committed
Add GitHub Actions CI workflow for automated testing
Configure a continuous integration pipeline to run pytest within a Conda environment on pushes, pull requests to the main branch, and a weekly schedule.
1 parent 734c5c1 commit a49a855

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: '0 6 * * 1' # Weekly on Monday at 06:00 UTC
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 15
15+
defaults:
16+
run:
17+
shell: bash -l {0}
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: conda-incubator/setup-miniconda@v3
23+
with:
24+
environment-file: environment.yml
25+
activate-environment: tst_env
26+
miniforge-version: latest
27+
28+
- name: Run tests
29+
env:
30+
PYTHONPATH: ${{ github.workspace }}
31+
run: |
32+
pytest --verbose --tb=short autotst/
33+
rm -rf species ts test/species test/ts

0 commit comments

Comments
 (0)