-
Notifications
You must be signed in to change notification settings - Fork 36
53 lines (44 loc) · 1.18 KB
/
conda.yaml
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
name: conda
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -e {0} # -e to fail on error
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python: "3.9"
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge,bioconda
channel-priority: strict
python-version: ${{ matrix.python-version }}
- name: install conda build
# TODO pinning conda-build version because it stopped working for no good reason in 3.25 or 3.26.
run: |
mamba install -y conda-build=3.24.0 conda-verify
shell: bash
- name: build and test package
run: |
cd .conda
mamba build --no-anaconda-upload .
shell: bash