Skip to content

Commit 0850abe

Browse files
committed
Add GitHub Action CI
1 parent fcfa139 commit 0850abe

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "*-[0-9]+.*"
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
build-linux:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Add conda to system path
20+
run: |
21+
# $CONDA is an environment variable pointing to the root of the miniconda directory
22+
echo $CONDA/bin >> $GITHUB_PATH
23+
- name: Install mamba
24+
run: |
25+
conda install -c conda-forge mamba
26+
- name: Install dependencies
27+
run: |
28+
mamba env update --file environment-test.yml --name base
29+
- name: Install primary project
30+
run: |
31+
pip install -e .
32+
- name: Install pytest
33+
run: |
34+
mamba install -c conda-forge pytest
35+
- name: Test with pytest
36+
run: |
37+
pytest
38+

environment-test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Use this environment file when running the tests, when scyjava will be
2+
# installed from source
3+
name: scyjava
4+
channels:
5+
- conda-forge
6+
- defaults
7+
dependencies:
8+
- jpype1
9+
- jgo
10+
- numpy
11+
- pandas

0 commit comments

Comments
 (0)