Skip to content

Commit 32027d0

Browse files
authored
Run tests on pull request and push to default branch (#98)
1 parent f085a57 commit 32027d0

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/python-test-suite.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Python Test Suite
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
410

511
jobs:
612
build-linux:
@@ -9,17 +15,22 @@ jobs:
915
max-parallel: 5
1016

1117
steps:
12-
- uses: actions/checkout@v2
18+
- name: Checkout source
19+
uses: actions/checkout@v2
20+
1321
- name: Set up Python 3.8
1422
uses: actions/setup-python@v2
1523
with:
1624
python-version: 3.8
25+
1726
- name: Get some info
1827
run: |
1928
$CONDA/bin/conda info
29+
2030
- name: Install dependencies
2131
run: |
2232
# $CONDA is an environment variable pointing to the root of the miniconda directory
33+
2334
- name: Activate environment
2435
run: |
2536
$CONDA/bin/pip install pytest
@@ -28,6 +39,7 @@ jobs:
2839
- name: Install Mapshader code
2940
run: |
3041
$CONDA/bin/pip install -e .
42+
3143
- name: Test with pytest
3244
run: |
3345
$CONDA/bin/pip install pytest

0 commit comments

Comments
 (0)