-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (47 loc) · 1.46 KB
/
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
46
47
48
49
name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-w-conda-recipe:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install xvfb/deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -yy mesa-utils libgl1-mesa-dev xvfb curl
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: bld-env
environment-file: .github/workflows/etc/bld-environment.yml
miniforge-variant: Miniforge3
use-mamba: true
- name: linux conda build test
if: matrix.os == 'ubuntu-latest'
shell: bash -l {0}
run: |
xvfb-run --server-args="-screen 0 1024x768x24" conda build --override-channels \
-c conda-forge conda-recipe
- name: linux/osx conda build test
if: matrix.os == 'macos-latest'
shell: bash -l {0}
run: |
conda build --override-channels -c conda-forge conda-recipe
- name: windows conda build test
if: matrix.os == 'windows-latest'
shell: cmd /C CALL {0}
run: |
conda build --override-channels -c conda-forge conda-recipe