-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.22 KB
/
Copy pathpython_package.yml
File metadata and controls
49 lines (39 loc) · 1.22 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
name: Code checks
on: [push, pull_request]
jobs:
Tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up micromamba for Python ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
environment-name: wisp
create-args: >-
python=${{ matrix.python-version }}
init-shell: bash
cache-environment: true
post-cleanup: "all"
- name: Install package
shell: micromamba-shell {0}
run: python -m pip install -e ".[dev,docs]"
- name: Lint (ruff check)
shell: micromamba-shell {0}
run: python -m ruff check .
- name: Type check (mypy)
shell: micromamba-shell {0}
run: python -m mypy
- name: Run tests
shell: micromamba-shell {0}
run: python -m pytest
- name: Build package
shell: micromamba-shell {0}
run: python -m build
- name: Build docs
shell: micromamba-shell {0}
run: python -m sphinx -W -b html docs docs/_build/html