Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: build

on:
push:
branches:
- master
pull_request:
branches:
- master
Expand All @@ -13,9 +11,28 @@ on:
- cron: "0 5 * * 6" # 5:00 UTC every Saturday

jobs:
check_duplicate_runs:
name: Check for duplicate runs
continue-on-error: true
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
concurrent_skipping: same_content
cancel_others: true
skip_after_successful_duplicate: false
paths_ignore: '["**/README.rst", "**/CHANGES.rst", "**/HACKING.rst", "**/LICENSE"]'
do_not_skip: '["pull_request"]'

build:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
needs: check_duplicate_runs
if: ${{ needs.check_duplicate_runs.outputs.should_skip != 'true' }}

strategy:
matrix:
Expand Down Expand Up @@ -69,7 +86,9 @@ jobs:

lint:
name: ${{ matrix.toxenv }}
needs: check_duplicate_runs
runs-on: ubuntu-latest
if: ${{ needs.check_duplicate_runs.outputs.should_skip != 'true' }}

strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ __pycache__/
.cache
*.DS_Store
venv/
.vscode