-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
69 lines (66 loc) · 1.73 KB
/
build-mac.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
67
68
69
name: Mac tests
on:
# This avoids having duplicate builds for a pull request
push:
branches:
- master
- 5.x
- 4.x
pull_request:
branches:
- master
- 5.x
- 4.x
jobs:
cleanup-previous-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
build:
name: Py${{ matrix.PYTHON_VERSION }}, ${{ matrix.INSTALL_TYPE }}, ${{ matrix.TEST_TYPE }}
runs-on: macos-latest
env:
CI: 'true'
CODECOV_TOKEN: "56731c25-9b1f-4340-8b58-35739bfbc52d"
OS: 'macos'
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
RUN_SLOW: ${{ matrix.TEST_TYPE == 'slow' }}
USE_CONDA: ${{ matrix.INSTALL_TYPE == 'conda' }}
strategy:
fail-fast: false
matrix:
INSTALL_TYPE: ['conda']
PYTHON_VERSION: ['3.7', '2.7']
TEST_TYPE: ['fast', 'slow']
steps:
- name: Checkout branch
uses: actions/checkout@v1.2.0
- name: Install Conda
uses: goanpeca/setup-miniconda@v1
with:
activate-environment: test
auto-update-conda: true
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Create test environment
shell: bash -l {0}
run: |
bash -l .github/workflows/install.sh
- name: Show test environment
shell: bash -l {0}
run: |
conda info
conda list
- name: Run tests
shell: bash -l {0}
run: |
python runtests.py
- name: Run application test
shell: bash -l {0}
run: |
python bootstrap.py -- --reset
- name: Coverage
shell: bash -l {0}
run: |
codecov