-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (40 loc) · 1.01 KB
/
main.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: build
on:
push:
branches:
- "master"
pull_request:
schedule:
- cron: "0 2 * * 1" # 1=monday
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
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"