Debian Codegraph @

.github/workflows/test_code.yml

raw symbols SCIP
1 name: Code Tests
2
3 on:
4 pull_request:
5 push:
6 branches: [main]
7
8 jobs:
9 run:
10 runs-on: ${{ matrix.os }}
11 strategy:
12 fail-fast: false
13 matrix:
14 os: [ubuntu-latest, windows-latest]
15 python-version: ["3.8", "3.12"]
16
17 steps:
18 - uses: actions/checkout@v3
19
20 - name: Setup Micromamba Python ${{ matrix.python-version }}
21 uses: mamba-org/setup-micromamba@v1
22 with:
23 environment-name: TEST
24 init-shell: bash
25 create-args: >-
26 python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt --channel conda-forge
27
28 - name: Install branca
29 shell: bash -l {0}
30 run: |
31 python -m pip install -e . --no-deps --force-reinstall
32
33 - name: Tests
34 shell: bash -l {0}
35 run: |
36 python -m pytest -vv -rxs tests -m "not headless"