-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (49 loc) · 1.66 KB
/
main.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: integration_test_cli
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Install Mamba
run: |
conda install -c conda-forge mamba -y
- name: Print conda folder contents
run: |
ls /usr/share/miniconda/bin/
ls /usr/share/miniconda/
- name: Create Conda Environment
run: |
/usr/share/miniconda/bin/mamba create -n marine_environment python=3.8.18 -y
/usr/share/miniconda/bin/mamba env update -n marine_environment --file marine_environment2.yaml
- name: Print marine_environment bin folder contents
run: |
ls /usr/share/miniconda/envs/marine_environment/bin
- name: Execute Integration Tests
run: |
echo "running source"
source /home/runner/.bashrc
echo "running init"
conda init bash
CONDA_BASE=$(conda info --base) ; source $CONDA_BASE/etc/profile.d/conda.sh
echo "running activate"
conda activate marine_environment
which python
echo "creating marine base dir environment variable..."
export MARINE=$(pwd)
echo $MARINE
ls $MARINE
echo "Adding marine to path..."
export PATH=$PATH:$(pwd)
echo $PATH
echo "running test"
cd tests
pwd
bash integration_tests_run.sh /usr/share/miniconda/envs/marine_environment/bin/python