-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (34 loc) · 1.07 KB
/
build.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
name: build
on: [push, pull_request]
jobs:
build-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-18.04", "ubuntu-20.04"]
python-version: ["3.8", "3.9"]
max-parallel: 5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Add micromamba to system path
uses: mamba-org/provision-with-micromamba@main
with:
environment-name: sstar
activate-environment: sstar
environment-file: build-env.yml
- name: Test with pytest
run: |
export R_LIBS=${CONDA_PREFIX}/lib/R/library
micromamba run -n sstar pytest --cov=. --cov-report term-missing
micromamba run -n sstar coverage xml
- name: upload coverage report to codecov
uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
fail_ci_if_error: true
env_vars: OS,PYTHON
token: d257164e-ffda-43ba-b37b-f33b5dde0f34