File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ${{ matrix.os }}
12+ strategy :
13+ matrix :
14+ os : [ubuntu-latest, macos-latest, windows-latest]
15+ python-version : ["3.12"]
16+ fail-fast : false
17+ defaults :
18+ run :
19+ shell : bash -l {0}
20+ name : ${{ matrix.os }} py ${{ matrix.python-version }} tests
21+
22+ steps :
23+ - name : Checkout code
24+ uses : actions/checkout@v5
25+
26+ - name : Set up Miniconda
27+ uses : conda-incubator/setup-miniconda@v3
28+ with :
29+ auto-update-conda : true
30+ python-version : ${{ matrix.python-version }}
31+ activate-environment : mdfs
32+ channels : conda-forge,defaults
33+ use-mamba : true
34+
35+ - name : Install uv
36+ run : |
37+ pip install uv
38+
39+ - name : Install package and dependencies
40+ run : |
41+ uv pip install -e .[dev,test]
42+
43+ - name : Check style
44+ run : |
45+ pre-commit run --all-files
46+
47+ - name : Run pytest
48+ run : |
49+ pytest -n $(nproc || echo 1) --dist=loadscope
You can’t perform that action at this time.
0 commit comments