-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1.2 KB
/
tests.yml
File metadata and controls
47 lines (37 loc) · 1.2 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
name: Tests
on:
workflow_dispatch:
push:
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4 # v4.2.2
- name: Set up Python
uses: actions/setup-python@v5 # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run tests with pytest
run: pytest tests/ --cov=quick --cov-report=xml
- name: Run mypy
run: mypy quick
- name: Run ruff
run: ruff check quick
- name: Report to codecov
uses: codecov/codecov-action@v5 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Report to Codacy
uses: codacy/codacy-coverage-reporter-action@v1.3.0 # v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage.xml