-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (39 loc) · 1.05 KB
/
routine_test_workflow.yaml
File metadata and controls
42 lines (39 loc) · 1.05 KB
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: Routine testing
on:
schedule:
- cron: '0 0 * * 1'
push:
branches:
- main
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install numpy
pip install scipy
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --junitxml=junit/test-results-${{ matrix.os }}.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.os }}
path: junit/test-results-${{ matrix.os }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}