-
Notifications
You must be signed in to change notification settings - Fork 11
66 lines (63 loc) · 2.32 KB
/
ci.yml
File metadata and controls
66 lines (63 loc) · 2.32 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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 -vvv --log-cli-level=info --typeguard-packages=cmake_file_api
check-typing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- run: python -m pip install -r requirements-dev.txt
- run: mypy --install-types --non-interactive --strict
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- run: python -m pip install -r requirements-dev.txt
- run: pylint --verbose --fail-under=10 --rcfile .pylintrc cmake_file_api
mypyc:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
py: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}
- run: python -m pip install -r requirements-dev.txt
- run: python setup.py bdist_wheel --dist-dir wheelhouse
- run: ls -al wheelhouse
- run: python -m pip install --no-deps --no-index --find-links=wheelhouse/ cmake_file_api
- run: python -m pip show --verbose cmake_file_api
- run: rm -rf cmake_file_api/
- run: python -m pytest --log-cli-level=info -vvv tests/