-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.04 KB
/
ci.yml
File metadata and controls
50 lines (41 loc) · 1.04 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
43
44
45
46
47
48
49
50
name: CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v6
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: mdpp
auto-activate: true
channels: conda-forge,defaults
channel-priority: strict
python-version: ${{ matrix.python-version }}
use-mamba: true
- name: Install dependencies
run: bash setup.sh
- name: Run pre-commit hooks
run: pre-commit run --all-files --show-diff-on-failure
- name: Run tests
run: pytest -n auto
- name: Build docs
run: mkdocs build --strict