Skip to content

Commit

Permalink
update actions deps + cancel strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jun 21, 2024
1 parent e9fcb7a commit cf3cf2c
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

on: [push, pull_request]
name: tests
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }}
cancel-in-progress: true
jobs:
linux:
runs-on: ${{ matrix.os }}
Expand All @@ -12,14 +15,10 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -38,13 +37,9 @@ jobs:
python-version: ["3.11"]

steps:
- uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -63,10 +58,10 @@ jobs:
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: 'Run linters'
run: |
python3 -m pip install black ruff rstcheck toml-sort sphinx-rtd-theme
python3 -m pip install --upgrade black ruff rstcheck toml-sort sphinx-rtd-theme
python3 -m pip freeze
make lint-all

0 comments on commit cf3cf2c

Please sign in to comment.