-
-
Notifications
You must be signed in to change notification settings - Fork 81
52 lines (38 loc) · 1.17 KB
/
python-package.yml
File metadata and controls
52 lines (38 loc) · 1.17 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
51
52
name: main
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13"]
concurrency:
group: ci-tests-${{ matrix.python_version }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: pysus
auto-update-conda: true
conda-solver: libmamba
# - name: Run jupyterlab with PySUS
# run: |
# make run-jupyter-pysus
# make test-jupyter-pysus ## takes too long
- name: Linting & Tests
run: |
pip install poetry poetry-plugin-export
poetry config virtualenvs.create false
poetry export --with dev --extras dbc --format requirements.txt --output reqs.txt --without-hashes
pip install -r reqs.txt
pip install -e ".[dbc]"
pre-commit run --all-files
make test-pysus