Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 on:
2 push:
3 branches: [ main ]
4 pull_request:
5 branches: [ main ]
6
7 jobs:
8 pre-commit:
9 runs-on: ubuntu-latest
10 steps:
11 - uses: actions/checkout@v4
12 with:
13 # Checkout pull request HEAD commit instead of merge commit
14 ref: ${{ github.event.pull_request.head.sha }}
15 fetch-depth: 0
16 - uses: actions/setup-python@v5
17 - name: Install Python deps
18 run: |
19 pip install -r requirements-dev.txt
20 - uses: pre-commit/[email protected]
21 with:
22 token: ${{ secrets.GITHUB_TOKEN }}
23
24 test:
25 runs-on: ${{ matrix.os }}
26 strategy:
27 matrix:
28 os: [ubuntu-latest, windows-latest, macos-latest]
29 python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
30 # also add an aarch64 test, just one python version
31 include:
32 - os: ubuntu-24.04-arm
33 python-version: "3.13"
34 fail-fast: false
35
36 steps:
37 - uses: actions/checkout@v4
38
39 - name: Set up Python ${{ matrix.python-version }}
40 uses: actions/setup-python@v5
41 with:
42 python-version: ${{ matrix.python-version }}
43
44 - name: Install dependencies
45 run: |
46 python -m pip install --upgrade pip setuptools wheel
47 pip install -e '.[test]'
48
49 - name: Test with pytest
50 run: |
51 pytest && pytest --only-ipython-magic