-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (35 loc) · 930 Bytes
/
build_and_test.yaml
File metadata and controls
43 lines (35 loc) · 930 Bytes
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: test_cluster_tools
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
python-version: [3.12]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: 'environment.yml'
create-args: >-
python=${{ matrix.python-version }}
- name: Install package
shell: bash -l {0}
run: pip install -e . --no-deps
- name: Prepare tests
shell: bash -l {0}
run: python test/base.py
- name: Run tests
shell: bash -l {0}
run: ./run_all_tests.sh