Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: Run unit tests
2
3 # defines when testing job is run
4 on:
5 push:
6 branches:
7 - main
8 - dev
9 pull_request:
10 branches:
11 - main
12 - dev
13 workflow_call:
14 workflow_dispatch:
15
16 # Defines the tasks to be completed
17 jobs:
18
19 testing:
20 runs-on: ubuntu-latest
21 continue-on-error: true
22 strategy:
23 matrix:
24 python-version: ["3.10", "3.11", "3.12", "3.13"]
25
26 steps:
27 - uses: actions/checkout@v4 # checkout the github branch
28
29 # Sets up Python, accesising the matrix defined above
30 # to get a specific Python version
31 # adding name here allows Python version to be documented
32 - name: Set up Python ${{ matrix.python-version }}
33 uses: actions/setup-python@v5
34 with:
35 python-version: ${{ matrix.python-version }}
36 cache: "pip"
37
38 # Installs the code to be tested, and pytest
39 - name: Install dependencies
40 run: |
41 python -m pip install --upgrade pip
42 python -m pip install .
43 python -m pip install pytest
44
45 # Runs pytest
46 - name: Run Pytest
47 run: pytest