-
Notifications
You must be signed in to change notification settings - Fork 134
63 lines (63 loc) · 2.15 KB
/
GithubActionTests.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
name: PR Tests
on: [pull_request]
jobs:
test-linux:
name: Linux tests
runs-on: ubuntu-latest
strategy:
matrix:
py_test_marker:
- not long_running_1 and not long_running_2
- long_running_1
- long_running_2
steps:
- uses: actions/checkout@v1
- name: Setup
uses: bioconda/bioconda-actions/bioconda_utils_setup_conda/@master
- name: Install bioconda-utils
run: |
python setup.py install
- name: Build docker container
run: |
docker build -t quay.io/bioconda/bioconda-utils-build-env:latest ./
docker history quay.io/bioconda/bioconda-utils-build-env:latest
docker run --rm -t quay.io/bioconda/bioconda-utils-build-env:latest sh -lec 'type -t conda && conda info -a && conda list'
docker build -t quay.io/bioconda/bioconda-utils-test-env:latest -f ./Dockerfile.test ./
- name: Run tests '${{ matrix.py_test_marker }}'
run: |
if git diff --name-only origin/master...HEAD | grep -vE ^docs; then
py.test --durations=0 test/ -v --log-level=DEBUG --tb=native -m '${{ matrix.py_test_marker }}'
else
echo "Skipping pytest - only docs modified"
fi
test-macosx:
name: OSX tests
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Setup
uses: bioconda/bioconda-actions/bioconda_utils_setup_conda/@master
- name: Install bioconda-utils
run: |
python setup.py install
- name: Run tests
run: |
if git diff --name-only origin/master...HEAD | grep -vE ^docs; then
py.test --durations=0 test/ -v --log-level=DEBUG -k "not docker" --tb=native
else
echo "Skipping pytest - only docs modified"
fi
autobump-test:
name: autobump test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup
uses: bioconda/bioconda-actions/bioconda_utils_setup_conda@master
- name: Install bioconda-utils
run: |
python setup.py install
- name: Test autobump
env:
AUTOBUMP_OPTS: --dry-run
uses: bioconda/bioconda-actions/bioconda_utils_autobump@master