-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 916 Bytes
/
backend-ci.yml
File metadata and controls
38 lines (33 loc) · 916 Bytes
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
name: Backend CI workflow
on:
push:
paths:
- chartlets.py/**
branches:
- main
pull_request:
paths:
- chartlets.py/**
jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: git-checkout chartlets
uses: actions/checkout@v4
- name: Set up Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: chartlets.py/environment.yml
- name: Run unit tests
shell: bash -l {0}
run: |
cd chartlets.py
pytest --cov=chartlets --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
directory: chartlets.py/
flags: backend
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}