generated from sehoffmann/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.08 KB
/
run_tests.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: Run Tests
on:
push:
branches:
- develop
tags: # ignores tag pushes
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
python-version:
- "3.10"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Environment
uses: ./.github/actions/setup_environment
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Install Project
run: |
pip install .
- name: Run tests & coverage
run: |
coverage run -m pytest --no-header -v test
coverage report -m -i
coverage html -i
- name: Archive coverage results
if: runner.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: htmlcov