File tree Expand file tree Collapse file tree 3 files changed +59
-6
lines changed Expand file tree Collapse file tree 3 files changed +59
-6
lines changed Original file line number Diff line number Diff line change 14
14
- cron : ' 0 5 * * 1'
15
15
16
16
jobs :
17
+ cancel_ci :
18
+ name : Mandatory checks before CI
19
+ runs-on : ubuntu-latest
20
+ outputs :
21
+ run_next : ${{ steps.skip_ci_step.outputs.run_next }}
22
+ steps :
23
+ - name : Check skip CI
24
+ uses : pllim/action-skip-ci@main
25
+ id : skip_ci_step
26
+ with :
27
+ NO_FAIL : true
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+ # This should only run if we did not skip CI
30
+ - name : Cancel Previous Runs
31
+ uses : styfle/cancel-workflow-action@ce17749
32
+ if : steps.skip_ci_step.outputs.run_next == 'true'
33
+ with :
34
+ access_token : ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ # The rest only run if above are done (unless cron only)
37
+
17
38
tests :
18
39
name : ${{ matrix.name }}
19
40
runs-on : ${{ matrix.os }}
41
+ needs : cancel_ci
42
+ if : needs.cancel_ci.outputs.run_next == 'true'
20
43
strategy :
21
44
fail-fast : true
22
45
matrix :
@@ -100,6 +123,8 @@ jobs:
100
123
egg_info :
101
124
name : egg_info with Python 3.7
102
125
runs-on : ubuntu-latest
126
+ needs : cancel_ci
127
+ if : needs.cancel_ci.outputs.run_next == 'true'
103
128
steps :
104
129
- name : Checkout code
105
130
uses : actions/checkout@v2
Original file line number Diff line number Diff line change 19
19
branches : [ master ]
20
20
21
21
jobs :
22
+ cancel_ci :
23
+ name : Mandatory checks before CI
24
+ runs-on : ubuntu-latest
25
+ outputs :
26
+ run_next : ${{ steps.skip_ci_step.outputs.run_next }}
27
+ steps :
28
+ - name : Check skip CI
29
+ uses : pllim/action-skip-ci@main
30
+ id : skip_ci_step
31
+ with :
32
+ NO_FAIL : true
33
+ SKIP_DIRECTIVES : ' [skip ci],[ci skip],[skip codeql],[codeql skip]'
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ # This should only run if we did not skip CI
36
+ - name : Cancel Previous Runs
37
+ uses : styfle/cancel-workflow-action@ce17749
38
+ if : steps.skip_ci_step.outputs.run_next == 'true'
39
+ with :
40
+ access_token : ${{ secrets.GITHUB_TOKEN }}
41
+
42
+ # The rest only run if above are done
43
+
22
44
analyze :
23
45
name : Analyze
24
46
runs-on : ubuntu-latest
47
+ needs : cancel_ci
48
+ if : needs.cancel_ci.outputs.run_next == 'true'
25
49
26
50
strategy :
27
51
fail-fast : false
Original file line number Diff line number Diff line change 4
4
:target: https://img.shields.io/pypi/v/astroquery.svg
5
5
:alt: Latest PyPI version
6
6
7
- .. image :: https://travis-ci.com/astropy /astroquery.svg?branch=master
8
- :target: https://travis-ci.com/astropy/astroquery
9
- :alt: Travis CI Status
7
+ .. image :: https://readthedocs.org/projects /astroquery/badge/?version=latest
8
+ :target: https://astroquery.readthedocs.io/en/latest/?badge=latest
9
+ :alt: Documentation Status
10
10
11
- .. image :: https://coveralls.io/repos/astropy/astroquery/badge.png
12
- :target: https://coveralls.io/r/astropy/astroquery
13
- :alt: Coverage Status
11
+ .. image :: https://github.com/astropy/astroquery/workflows/CI/badge.svg
12
+ :target: https://github.com/astropy/astroquery/actions?query=workflow%3ACI
13
+ :alt: Github Actions CI Status
14
+
15
+ .. image :: https://codecov.io/gh/astropy/astroquery/branch/master/graph/badge.svg
16
+ :target: https://codecov.io/gh/astropy/astroquery
17
+ :alt: Coverage results
14
18
15
19
.. image :: https://zenodo.org/badge/DOI/10.5281/zenodo.1160627.svg
16
20
:target: https://doi.org/10.5281/zenodo.1160627
You can’t perform that action at this time.
0 commit comments