-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 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
42
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 Miniconda - Ubuntu
if: matrix.os == 'ubuntu-latest'
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge
environment-file: conda/recipe/qeb-ci-py310.yml
activate-environment: qeb-ci-py310
- name: Setup Miniconda - Windows
if: matrix.os == 'windows-latest'
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge
environment-file: conda/recipe/qeb-ci-py310.yml
activate-environment: qeb-ci-py310
- name: Build & Install
run: |
cd conda/recipe
conda build . --output-folder .
ls
conda install --use-local quasielasticbayes-0.2.0-*.tar.bz2
- name: Test
run: |
pytest quasielasticbayes/test