-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 983 Bytes
/
test.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
name: test
on:
push:
branches:
- "master"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: "ubuntu-latest"
shell_exec: "bash -c"
activate_cmd: "source activate"
- os: "windows-latest"
shell_exec: "cmd.exe /c"
activate_cmd: "activate"
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: "3.10"
conda-channels: anaconda, conda-forge
- name: conda-devenv
run: |
conda install conda-devenv
conda-devenv
- name: Test
run: |
${{ matrix.shell_exec }} "${{ matrix.activate_cmd }} deps && python -m pytest source/python"