-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (50 loc) · 1.85 KB
/
python-app.yaml
File metadata and controls
52 lines (50 loc) · 1.85 KB
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
45
46
47
48
49
50
51
52
name: Python application
on: [pull_request]
jobs:
monsdatest:
name: monsda-test
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
# Docker Hub image that `postgres-job` executes in
container: node:latest
# service containers to run with `postgres-job`
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@master
with:
miniconda-version: "latest"
activate-environment: monsda-test
environment-file: environment.yml
python-version: 3.12.2
channels: conda-forge,bioconda
allow-softlinks: true
channel-priority: flexible
show-channel-urls: true
use-only-tar-bz2: false
auto-activate-base: false
- name: build and install monsda
run: |
cd ${{ github.workspace }}
echo "Build start"
python -m pip install --upgrade pip
python -m pip install build
python -m build
pip install dist/*.whl
- name: preparing test
run: |
echo "Build finished, preparing tests"
export a=$(monsda --version 2>&1 >/dev/null |sed 's/MONSDA version //g')
sed -i "s/\"VERSION\": \"FIXME\"/\"VERSION\": \"$a\"/g" tests/data/config_Test.json
- name: running test
run: |
echo "Running tests"
cd ${{ github.workspace }}/tests
ln -fs data/* .
mkdir -p CONDALIB
monsda -j 6 -c config_Test.json --directory ${PWD} --use-conda --conda-prefix CONDALIB --save && echo "MONSDA test passed" || echo "MONSDA test failed"
#chmod +x cicd_test.sh
#./cicd_test.sh