Skip to content

Commit

Permalink
Cancel workflow on PR commit (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Mar 10, 2024
1 parent b3ae13a commit 08153ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
pull_request:
branches: ['*']

# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions ci/requirements-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: pyscenarios-minimal
channels:
- conda-forge
dependencies:
- python=3.8
- dask=2.2
- numba=0.47
- numpy=1.16
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ markers = [
]
filterwarnings = [
"error",
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
]

[tool.coverage.report]
Expand Down

0 comments on commit 08153ad

Please sign in to comment.