Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit cd6b216

Browse files
committed
allow CI on all branches
1 parent f34c985 commit cd6b216

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/code.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ name: Code CI
33
on:
44
push:
55
branches:
6-
# Restricting to these branches and tags stops duplicate jobs on internal
7-
# PRs but stops CI running on internal branches without a PR. Delete the
8-
# next 5 lines to restore the original behaviour
9-
- master
10-
- main
6+
- "*"
117
tags:
128
- "*"
139
pull_request:
@@ -16,7 +12,19 @@ on:
1612
- cron: "0 8 * * MON"
1713

1814
jobs:
15+
skip_check:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
19+
steps:
20+
- id: skip_check
21+
uses: fkirc/skip-duplicate-actions@v4
22+
with:
23+
concurrent_skipping: "always"
24+
1925
lint:
26+
needs: skip_check
27+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
2028
runs-on: "ubuntu-latest"
2129
steps:
2230
- name: Checkout
@@ -28,6 +36,8 @@ jobs:
2836
tox -e pre-commit,mypy
2937
3038
wheel:
39+
needs: skip_check
40+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
3141
strategy:
3242
fail-fast: false
3343
matrix:
@@ -61,6 +71,8 @@ jobs:
6171
run: pipx run --python $(which python${{ matrix.python }}) --spec dist/*.whl ${GITHUB_REPOSITORY##*/} --version
6272

6373
test:
74+
needs: skip_check
75+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
6476
strategy:
6577
fail-fast: false
6678
matrix:

0 commit comments

Comments
 (0)