Limit workflow concurrency #1003
Workflow file for this run
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
on: ["push", "pull_request"] | |
name: linting | |
# This limits the workflow to 1 active run at any given time for a specific branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WEB3_INFURA_PROJECT_ID: 44c6300c5e5b4b2da5fc42b06bf18a8e | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
job: [lint, docs-local] | |
experimental: [false] | |
include: | |
- job: docs-external | |
experimental: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e ${{ matrix.job }} | |
continue-on-error: ${{ matrix.experimental }} |