-
Notifications
You must be signed in to change notification settings - Fork 6
69 lines (56 loc) · 1.57 KB
/
tests.yaml
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
67
68
69
---
name: Unit Tests
on: # NOLINT
pull_request:
push:
schedule:
- cron: '0 10 * * MON'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[docs,test]
- name: Install Node tools (Linux)
if: runner.os == 'Linux'
run: |
npm install -g markdownlint-cli
npm install -g write-good
- name: Mypy
run: |
mypy --ignore-missing-imports --strict src/statick_tool/
- name: Tox
run: |
python -m tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
- name: Statick Documentation
if: runner.os == 'Linux'
uses: sscpac/[email protected]
with:
profile: documentation.yaml
timings: true
- name: Self check
if: runner.os == 'Linux'
uses: sscpac/[email protected]
with:
profile: self_check.yaml
timings: true