-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (39 loc) · 991 Bytes
/
python-package.yml
File metadata and controls
43 lines (39 loc) · 991 Bytes
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
name: Conda package test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Cache Conda
uses: actions/cache@v5
with:
path: ~/.conda
key: ${{ runner.os }}-mconda-${{ hashFiles('**/configuration.yml') }}
restore-keys: |
${{ runner.os }}-conda-
- name: Set up Conda
uses: goanpeca/setup-miniconda@v1
with:
miniconda-version: "latest"
- name: Verify conda version
shell: bash -l {0}
run: conda --version
- name: Update conda package
shell: bash -l {0}
run: |
conda env create -n beakerx -f configuration.yml
- name: Test BeakerX Base
shell: bash -l {0}
run: |
conda activate beakerx
pytest
- name: Build BeakerX Base
shell: bash -l {0}
run: |
conda activate beakerx
pip install -e .