-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1022 Bytes
/
tests.yml
File metadata and controls
43 lines (37 loc) · 1022 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
39
40
41
42
43
---
name: Tests
on:
workflow_run:
workflows: ["Code Quality"]
types:
- completed
jobs:
run_tests_if_successful_build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
strategy:
matrix:
python:
- version: "3.10"
image: "python:3.10-slim"
- version: "3.11"
image: "python:3.11-slim"
- version: "3.12"
image: "python:3.12-slim"
container:
image: ${{ matrix.python.image }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
apt-get update
apt-get install -y git build-essential
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run tests with coverage
run: |
coverage run -m pytest --maxfail=2 --disable-warnings tests/
coverage report