Skip to content

Commit e60e2a8

Browse files
author
Nathan Hammond
committed
add github action for conda install test
1 parent 5358059 commit e60e2a8

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.github/workflows/docker-build-test-and-push.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- '*'
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
env:
913
REF_NAME: ${{ github.head_ref || github.ref_name }}
1014

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test conda install
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python 3.10
22+
uses: actions/setup-python@v3
23+
with:
24+
python-version: "3.10"
25+
26+
- name: Install package
27+
run: |
28+
$CONDA/bin/conda env update --file environment.yml --name base
29+
30+
- name: Test with unittest
31+
run: |
32+
$CONDA/bin/python3 -m unittest discover

.github/workflows/test-pip-install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525

2626
- name: Install package
2727
run: |
28-
python -m pip install --upgrade pip
29-
python -m pip install .
28+
python3 -m pip install --upgrade pip
29+
python3 -m pip install .
3030
3131
- name: Test with unittest
3232
run: |
33-
python -m unittest discover
33+
python3 -m unittest discover

0 commit comments

Comments
 (0)