Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: Run unit tests
2 on: [push, pull_request]
3
4 jobs:
5 test:
6 # The type of runner that the job will run on
7 runs-on: ubuntu-latest
8
9 strategy:
10 matrix:
11 python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
12
13 # Steps represent a sequence of tasks that will be executed as part of the job
14 steps:
15 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16 - uses: actions/checkout@v2
17 - name: Set up Python ${{ matrix.python-version }}
18 uses: actions/setup-python@v2
19 with:
20 python-version: ${{ matrix.python-version }}
21 - name: Install dependencies
22 run: |
23 python -m pip install --upgrade pip
24 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25 if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
26 - name: Run unittests
27 run: python -m unittest discover -v tests