-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (32 loc) · 907 Bytes
/
ci.yaml
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
name: CI
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push: { branches: [ "main" ] }
pull_request: { branches: [ "main" ] }
jobs:
test:
runs-on: ubuntu-latest
container: condaforge/mambaforge:latest
steps:
- uses: actions/checkout@v3.3.0
- name: Setup Conda Environment
run: |
apt update && apt install -y git make
make env
make lint
make test
make test-examples
make docs
# TODO: Remove this once pydantic 1.0 support is dropped
# We remove absolv as femto needs pydantic >=2
mamba remove --name smee --yes "absolv"
mamba install --name smee --yes "pydantic <2"
make test
- name: CodeCov
uses: codecov/codecov-action@v4.1.1
with:
file: ./coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}