1
1
# Test PyGMT with GMT dev version on Linux/macOS/Windows
2
2
#
3
- # This workflow runs regular PyGMT tests with the GMT dev version, and also
4
- # pre-release versions of several dependencies like NumPy, Pandas, Xarray, etc.
5
- # If any tests fail, it also uploads the diff images as workflow artifacts.
6
- # The GMT dev version is installed by fetching the latest source codes from
7
- # the GMT master branch and compiling.
3
+ # This workflow runs regular PyGMT tests with the GMT dev version, and also pre-release
4
+ # versions of several dependencies like NumPy, Pandas, Xarray, etc. If any tests fail,
5
+ # it also uploads the diff images as workflow artifacts. The GMT dev version is
6
+ # installed by fetching the latest source codes from the GMT master branch and
7
+ # compiling.
8
8
#
9
- # It is triggered when a pull request is marked as "ready as review", or using
10
- # the slash command ` /test-gmt-dev` . It is also scheduled to run on Monday,
11
- # Wednesday, and Friday on the main branch.
9
+ # It is triggered when a pull request is marked as "ready as review", or labeled with
10
+ # 'run /test-gmt-dev' . It is also scheduled to run on Monday, Wednesday, and Friday on
11
+ # the main branch.
12
12
#
13
13
name : GMT Dev Tests
14
14
15
15
on :
16
16
# push:
17
17
# branches: [ main ]
18
18
pull_request :
19
- types : [ready_for_review ]
19
+ types : [ opened, reopened, labeled, synchronize ]
20
20
paths :
21
21
- ' pygmt/**'
22
22
- ' .github/workflows/ci_tests_dev.yaml'
23
- repository_dispatch :
24
- types : [test-gmt-dev-command]
25
23
# Schedule tests on Monday/Wednesday/Friday
26
24
schedule :
27
25
- cron : ' 0 0 * * 1,3,5'
34
32
test_gmt_dev :
35
33
name : ${{ matrix.os }} - GMT ${{ matrix.gmt_git_ref }}
36
34
runs-on : ${{ matrix.os }}
35
+ if : github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run/test-gmt-dev')
37
36
strategy :
38
37
fail-fast : false
39
38
matrix :
@@ -48,31 +47,10 @@ jobs:
48
47
# Checkout current git repository
49
48
- name : Checkout
50
49
51
- if : github.event_name != 'repository_dispatch'
52
50
with :
53
51
# fetch all history so that setuptools-scm works
54
52
fetch-depth : 0
55
53
56
- # Checkout the pull request branch
57
- - name : Checkout
58
-
59
- if : github.event_name == 'repository_dispatch'
60
- with :
61
- token : ${{ secrets.GITHUB_TOKEN }}
62
- repository : ${{ github.event.client_payload.pull_request.head.repo.full_name }}
63
- ref : ${{ github.event.client_payload.pull_request.head.ref }}
64
- # fetch all history so that setuptools-scm works
65
- fetch-depth : 0
66
-
67
- - name : Show job URL
68
- uses :
peter-evans/[email protected]
69
- if : github.event_name == 'repository_dispatch' && runner.os == 'Linux'
70
- with :
71
- token : ${{ secrets.GITHUB_TOKEN }}
72
- repository : ${{ github.event.client_payload.github.payload.repository.full_name }}
73
- comment-id : ${{ github.event.client_payload.github.payload.comment.id }}
74
- body : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
75
-
76
54
# Install Micromamba with conda-forge dependencies
77
55
- name : Setup Micromamba
78
56
0 commit comments