-
-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (36 loc) · 1007 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Tests
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *" # every day at midnight
jobs:
build:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: ./.github/actions/conda-setup
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/bmad-setup
- name: Show conda environment packages
shell: bash -l {0}
run: |
conda list
- name: Run Tests
shell: bash -l {0}
run: |
echo -e '## Test results\n\n```' >> "$GITHUB_STEP_SUMMARY"
pytest -v --cov=pytao/ pytao/tests 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"