|
1
|
name: CI |
|
2
|
|
|
3
|
on: |
|
4
|
push: |
|
5
|
branches: [main] |
|
6
|
pull_request: |
|
7
|
branches: [main] |
|
8
|
|
|
9
|
env: |
|
10
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true |
|
11
|
|
|
12
|
jobs: |
|
13
|
test: |
|
14
|
runs-on: ${{ matrix.os }} |
|
15
|
strategy: |
|
16
|
matrix: |
|
17
|
os: [ubuntu-latest] |
|
18
|
python-version: ["3.11", "3.12", "3.13"] |
|
19
|
steps: |
|
20
|
- uses: actions/checkout@v4 |
|
21
|
|
|
22
|
- uses: actions/setup-python@v5 |
|
23
|
with: |
|
24
|
python-version: ${{ matrix.python-version }} |
|
25
|
|
|
26
|
- name: Install dependencies |
|
27
|
run: | |
|
28
|
python -m pip install --upgrade pip |
|
29
|
pip install -e ".[dev]" |
|
30
|
|
|
31
|
- name: Run tests |
|
32
|
run: pytest tests/ -v --tb=short |
|
33
|
|
|
34
|
- name: Lint |
|
35
|
run: ruff check hugoifier/ tests/ |
|
36
|
|