-
Notifications
You must be signed in to change notification settings - Fork 68
47 lines (45 loc) · 1.08 KB
/
synth.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
44
45
46
47
name: Synthesizers Unit Tests
on:
pull_request:
paths:
- 'synth/tests/**'
- 'synth/snsynth/**'
- 'synth/pyproject.toml'
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.11]
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
auto-activate-base: true
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
shell: bash -l {0}
run: |
conda install pip
conda update pip
- name: Install dependencies
shell: bash -l {0}
run: |
cd synth
pip install --no-cache-dir -r tests/requirements.txt
- name: Install smartnoise-synth
shell: bash -l {0}
run: |
cd synth
pip install --no-cache-dir .
- name: Test SDK
shell: bash -l {0}
run: |
cd synth
python -m pytest tests