-
-
Notifications
You must be signed in to change notification settings - Fork 81
53 lines (39 loc) · 1.2 KB
/
python-package.yml
File metadata and controls
53 lines (39 loc) · 1.2 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
53
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: 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 --files pysus/**/*
make test-pysus-with-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false