Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: Test
2
3 on:
4 push:
5 branches: [main]
6 pull_request:
7 branches: [main]
8
9 env:
10 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11
12 jobs:
13 build:
14 runs-on: ${{ matrix.platform }}
15 strategy:
16 fail-fast: false
17 matrix:
18 python-version: ["3.9", "3.10", "3.11", "3.12"]
19 platform: [ubuntu-latest, windows-latest]
20 steps:
21 - uses: actions/checkout@v4
22 with:
23 submodules: recursive
24 fetch-depth: 0
25 - name: Set up Python ${{ matrix.python-version }}
26 uses: actions/setup-python@v5
27 with:
28 python-version: ${{ matrix.python-version }}
29 - name: Install packages
30 run: |
31 pip install '.[dev]'
32 pip install black pylint
33 - name: Check formatting
34 run: |
35 black --diff --check Lib --exclude ".*_pb2.*|_version.py"
36 - name: Run Tests
37 run: |
38 pytest tests