-
Notifications
You must be signed in to change notification settings - Fork 39
36 lines (34 loc) · 923 Bytes
/
test.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
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
pip3 install -r scripts/requirements.txt
pip3 install -r scripts/requirements-test.txt
pip3 install -r scripts/requirements-dev.txt
- name: lint scripts
run: flake8 --config scripts/.flake8 scripts
- name: run script tests
run: |
pytest scripts/tests \
--cov=scripts \
--cov-config scripts/.coveragerc \
--cov-report term \
-vv