-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (42 loc) · 1.13 KB
/
build-test-linux.yml
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 LINUX
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-linux:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install graphviz graphviz-dev
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ./installation/sira_env.yml
environment-name: sira_env
create-args: >-
python=${{ matrix.python-version }}
libtiff
libpng
cache-environment: true
- name: Install uv and requirements
shell: bash -l {0}
run: |
micromamba activate sira_env
pip install uv
uv pip install -r ./installation/sira_req.txt
- name: Run pytest
shell: bash -l {0}
run: |
micromamba activate sira_env
pytest
- name: Upload Coverage to codecov
uses: codecov/codecov-action@v2