-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.15 KB
/
build_and_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
name: Build and Test - Python 3.10
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Build Env
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
environment-file: conda/recipe/qeb-build-py310.yml
activate-environment: qeb-build-py310
auto-activate-base: false
- name: Build
run: |
cd conda/recipe
conda build . --output-folder .
- name: Setup Test Env
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
environment-file: conda/recipe/qeb-test-py310.yml
activate-environment: qeb-test-py310
auto-activate-base: false
- name: Install & Test
run: |
conda install --force-reinstall --use-local conda/recipe/*-64/quasielasticbayes-0.2.0-*.tar.bz2
pytest quasielasticbayes/test