-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 885 Bytes
/
Test.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
name: Test
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master ]
jobs:
run-script:
runs-on: ubuntu-20.04
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yaml
- name: Test script
run: |
cd Test
conda run -n fantastic-lamp bash ../find_coverage.sh
conda run -n fantastic-lamp pytest
if [ $? -ne 0 ]; then exit 1; fi