diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 139ced7..ecb03a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,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: always + 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: @@ -67,6 +86,7 @@ jobs: lint: name: ${{ matrix.toxenv }} + needs: check_duplicate_runs runs-on: ubuntu-latest strategy: diff --git a/.gitignore b/.gitignore index 7021a31..195e1e8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ __pycache__/ .cache *.DS_Store venv/ +.vscode