-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (38 loc) · 1.11 KB
/
ci.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
43
44
name: CI
on: [push]
jobs:
build:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.10"]
name: build-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout test data
uses: actions/checkout@v3
with:
repository: LebeerLab/SCARAP-testdata
path: testdata
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1
- uses: brokenpip3/[email protected]
with:
support-path: ${{ github.workspace }}/test/test_helper/bats-support
assert-path: ${{ github.workspace }}/test/test_helper/bats-assert
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Test with bats
run: |
bats -r .