-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (40 loc) · 1.17 KB
/
ci.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
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches: [next, qa, main]
jobs:
linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Setup libmamba solver
run: |
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
- name: Install requirements
run: |
# --quiet should turn off progress bars to make logs more readable
conda env create --file conda_environment.yml --quiet
conda activate webmon
conda env update --file conda_development.yml --quiet
- name: Test with pytest
run: |
conda activate webmon
export DJANGO_SETTINGS_MODULE='reporting.reporting_app.settings.unittest'
python -m pytest --cov --cov-report=xml --cov-report=term src
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build documentation
run: |
conda activate webmon
cd docs && make html