Skip to content

Commit c788630

Browse files
author
Ware, Joseph (DLSLtd,RAL,LSCI)
committed
Remove check workflow and filter on branch name
1 parent 002a1c5 commit c788630

File tree

3 files changed

+2
-48
lines changed

3 files changed

+2
-48
lines changed

.github/workflows/_check.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,17 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68

79
jobs:
8-
check:
9-
uses: ./.github/workflows/_check.yml
10-
1110
lint:
12-
needs: check
13-
if: needs.check.outputs.branch-pr == ''
1411
uses: ./.github/workflows/_tox.yml
1512
with:
1613
tox: pre-commit
1714

1815
test:
19-
needs: check
20-
if: needs.check.outputs.branch-pr == ''
2116
uses: ./.github/workflows/_test.yml
2217
with:
2318
python-version: dev
@@ -26,8 +21,6 @@ jobs:
2621
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2722

2823
docs:
29-
needs: check
30-
if: needs.check.outputs.branch-pr == ''
3124
uses: ./.github/workflows/_docs.yml
3225
permissions:
3326
contents: write

template/{% if git_platform=="github.com" %}.github{% endif %}/workflows/ci.yml.jinja

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,13 @@ on:
55
pull_request:
66

77
jobs:
8-
check:
9-
uses: ./.github/workflows/_check.yml
108

119
lint:
12-
needs: check
13-
if: needs.check.outputs.branch-pr == ''
1410
uses: ./.github/workflows/_tox.yml
1511
with:
1612
tox: pre-commit,type-checking
1713
{% raw %}
1814
test:
19-
needs: check
20-
if: needs.check.outputs.branch-pr == ''
2115
strategy:
2216
matrix:
2317
runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest
@@ -35,21 +29,15 @@ jobs:
3529
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3630
{% endraw %}{% if docker %}
3731
container:
38-
needs: check
39-
if: needs.check.outputs.branch-pr == ''
4032
uses: ./.github/workflows/_container.yml
4133
permissions:
4234
contents: read
4335
packages: write
4436
{% endif %}{% if sphinx %}
4537
docs:
46-
needs: check
47-
if: needs.check.outputs.branch-pr == ''
4838
uses: ./.github/workflows/_docs.yml
4939
{% endif %}
5040
dist:
51-
needs: check
52-
if: needs.check.outputs.branch-pr == ''
5341
uses: ./.github/workflows/_dist.yml
5442
{% if pypi %}
5543
pypi:

0 commit comments

Comments
 (0)