Update .github/workflows/black.yml to be concurrent #666
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pip Install | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 1 * * *" # 3 AM CET | ||
push: | ||
pull_request: | ||
jobs: | ||
pip: | ||
name: Pip Install | ||
runs-on: [self-hosted, Linux, builder, docker] | ||
container: | ||
image: python:3.9.5 | ||
options: --user 0:0 | ||
volumes: | ||
- /home/buildbot/.ssh:/root/.ssh | ||
steps: | ||
- name: Install SSH client | ||
run: apt update && apt -y install openssh-client | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
- name: Install package | ||
run: pip install . | ||
# Cancel previous in-progress when pushing: https://stackoverflow.com/a/72408109 | ||
concurrency: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | ||
cancel-in-progress: true |