-
Notifications
You must be signed in to change notification settings - Fork 37
43 lines (40 loc) · 1.05 KB
/
tester.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "🎳 Tester"
on:
push:
branches:
- master
paths:
- '**.py'
- .github/workflows/tester.yml
pull_request:
branches:
- main
paths:
- '**.py'
- .github/workflows/tester.yml
jobs:
continuous-integration:
name: Continuous integration ${{ matrix.os }} python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ${{ fromJSON(vars.BUILD_OS)}}
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python }}
- name: Installing dependencies
shell: bash -l {0}
run: |
conda install -c conda-forge numpy scipy scikit-image scikit-learn pytest networkx osqp matplotlib -y
- name: Building and install
shell: bash -l {0}
run: |
pip install . --user
- name: pytest
shell: bash -l {0}
run: |
pytest