-
Notifications
You must be signed in to change notification settings - Fork 38
99 lines (86 loc) · 2.4 KB
/
conda.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Conda End-to-end Test
on:
push:
branches:
- main
paths-ignore:
- LICENSE
- NOTICE
- README.md
- "docs/**"
pull_request:
branches:
- main
paths-ignore:
- LICENSE
- NOTICE
- README.md
- "docs/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: write
checks: write
jobs:
build:
strategy:
matrix:
os:
- ubuntu-24.04
- macos-14
- macos-13
- windows-2019
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.7-0'
environment-file: conda/dev-environment-unix.yml
init-shell: >-
bash
cache-environment: true
post-cleanup: 'all'
if: ${{ runner.os != 'Windows' }}
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.7-0'
environment-file: conda/dev-environment-win.yml
init-shell: >-
cmd.exe
cache-environment: true
post-cleanup: 'all'
if: ${{ runner.os == 'Windows' }}
- name: Set up Caches
uses: ./.github/actions/setup-caches
with:
vcpkg: false
- name: Python Lint Steps
run: make lint
shell: micromamba-shell {0}
if: ${{ runner.os != 'Windows' }}
- name: Python Lint Steps ( Windows )
run: make lint
shell: cmd /C call {0}
if: ${{ runner.os == 'Windows' }}
- name: Python Build Steps
run: make build-conda
shell: micromamba-shell {0}
if: ${{ runner.os != 'Windows' }}
- name: Python Build Steps ( Windows )
env:
CSP_GENERATOR: "Visual Studio 16 2019"
run: make build-conda
shell: cmd /C call {0}
if: ${{ runner.os == 'Windows' }}
- name: Python Test Steps
run: make test
shell: micromamba-shell {0}
if: ${{ runner.os != 'Windows' }}
- name: Python Test Steps ( Windows )
run: make test
shell: cmd /C call {0}
if: ${{ runner.os == 'Windows' }}