Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Mar 25, 2024
1 parent b1239c0 commit 69dcd12
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/check-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,27 @@ on:
schedule:
- cron: '0 7 * * 1' # M H d m w (Mondays at 7:00)

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
check:
if: startsWith(github.ref, 'refs/tags') || github.event_name == 'pull_request' || github.event_name == 'schedule' || github.repository_owner != 'iterative'
name: Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: set PYSHA
run: echo "PYSHA=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PYSHA }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: pip install -U pre-commit tox .[dev]
- run: SKIP=pylint pre-commit run -a --show-diff-on-failure
- run: pip install -e .[dev]
- uses: pre-commit/[email protected]
env:
SKIP: pylint
test:
if: startsWith(github.ref, 'refs/tags') || github.event_name == 'pull_request' || github.event_name == 'schedule' || github.repository_owner != 'iterative'
name: Test ${{ matrix.os }} with py${{ matrix.python }}
Expand Down

0 comments on commit 69dcd12

Please sign in to comment.