Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI
2 on:
3 push:
4 pull_request:
5 schedule:
6 - cron: '0 6 * * *'
7 defaults:
8 run:
9 shell: bash
10 jobs:
11 test:
12 if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
13 strategy:
14 fail-fast: false
15 matrix:
16 include:
17 - python: '^3.14'
18 os: ubuntu-latest
19 - python: '3.14'
20 os: macos-latest
21 - python: '3.13'
22 os: windows-latest
23 - python: '3.12'
24 os: ubuntu-latest
25 - python: '3.11'
26 os: macos-latest
27 - python: '3.10'
28 os: windows-latest
29 - python: '3.10'
30 os: ubuntu-latest
31 versions: minimal
32 runs-on: ${{matrix.os}}
33 steps:
34 - name: Download source
35 uses: actions/checkout@v6
36 - name: Install Python
37 uses: actions/setup-python@v6
38 with:
39 python-version: ${{matrix.python}}
40 - name: Pin to lowest versions
41 if: matrix.versions == 'minimal'
42 run: |
43 sed -i -E -e '/properdocs >=/d' -e 's/#min //; s/\b >=([0-9])/ ==\1/' pyproject.toml
44 - name: Install Hatch
45 run: |
46 pip install hatch
47 - name: Install dependencies
48 run: |
49 hatch run test:pip freeze
50 - name: Run tests
51 run: |
52 hatch run test:test
53 style:
54 if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
55 runs-on: ubuntu-latest
56 steps:
57 - name: Download source
58 uses: actions/checkout@v6
59 - name: Install Python
60 uses: actions/setup-python@v6
61 with:
62 python-version: '3.13'
63 - name: Install Hatch
64 run: |
65 pip install hatch
66 - name: Install dependencies
67 run: |
68 hatch run style:pip freeze
69 hatch run types:pip freeze
70 - name: Check style
71 if: always()
72 run: |
73 hatch run style:check
74 - name: Check types
75 if: always()
76 run: |
77 hatch run types:check