forked from microsoft/Qcodes
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (53 loc) · 1.35 KB
/
conda-forge-install-and-test.yaml
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
48
49
50
51
52
53
54
55
56
57
name: Install all deps from conda-forge and run pytest
on:
push:
branches:
- 'master'
- 'release/*'
- 'staging'
- 'trying'
tags:
- 'v*'
pull_request:
jobs:
pytestconda:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
env:
DISPLAY: ':99.0'
OS: ${{ matrix.os }}
steps:
- name: checkout source code
uses: actions/[email protected]
with:
submodules: true
- name: setup ubuntu-latest xvfb
uses: ./.github/actions/setup-ubuntu-latest-xvfb
if: runner.os == 'Linux'
- name: install dependencies
uses: conda-incubator/[email protected]
with:
activate-environment: qcodesforge
environment-file: .github/static/environment_forge_full.yml
auto-activate-base: false
- name: conda info
shell: bash -l {0}
run: |
conda info
- name: install qcodes
shell: bash -l {0}
run: |
pip install . --no-deps
- name: Run Mypy
shell: bash -l {0}
run: mypy qcodes
- name: run parallel tests
shell: bash -l {0}
run: |
pytest -m "not serial" --hypothesis-profile ci qcodes
- name: run serial tests
shell: bash -l {0}
run: |
pytest -m "serial" -n 0 --dist no --hypothesis-profile ci qcodes