forked from seanboyce/ubiblio
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.08 KB
/
Copy pathci-pipeline.yml
File metadata and controls
49 lines (43 loc) · 1.08 KB
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
name: CI pipeline
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
cache-dependency-path: |
requirements.txt
requirements-test.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-test.txt
- name: Run unit tests with coverage
env:
USE_REDIS: "false"
run: |
python -m pytest tests/ -v \
--cov=ubiblio \
--cov-report=term-missing \
--cov-report=xml \
--cov-report=html
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: |
htmlcov/
coverage.xml
if-no-files-found: error