-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (45 loc) · 1.4 KB
/
Copy pathci.yml
File metadata and controls
47 lines (45 loc) · 1.4 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: Run all tests
on:
pull_request:
push:
release:
types: published
schedule:
- cron: 0 0 1 * * # Run once every month
jobs:
run-pytest:
strategy:
fail-fast: false
matrix:
py: [ '3.10', '3.11', '3.12', '3.13', '3.14' ]
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}
- name: "Install requirements"
run: |
python -m pip install -r requirements-dev.txt
- name: "Run pytest"
run: |
pytest
check-typing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- run: pip install mypy
- run: mypy --install-types --non-interactive
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- run: pip install pylint
- run: pylint --rcfile .pylintrc cmake_file_api