Skip to content

Commit b323579

Browse files
committed
eliminate duplicate builds
1 parent b3c5af1 commit b323579

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/python-ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,38 @@ on:
44
push:
55
branches: [ main ]
66

7+
# When this workflow is queued, automatically cancel any previous running
8+
# or pending jobs from the same branch
9+
concurrency:
10+
group: conda-${{ github.ref }}
11+
cancel-in-progress: true
12+
713
jobs:
814
build:
15+
916
runs-on: ubuntu-latest
17+
1018
strategy:
1119
matrix:
1220
python-version: ["3.10"]
21+
1322
steps:
23+
1424
- uses: actions/checkout@v4
25+
1526
- name: Set up Python ${{ matrix.python-version }}
1627
uses: actions/setup-python@v3
1728
with:
1829
python-version: ${{ matrix.python-version }}
30+
1931
- name: Install dependencies
2032
run: |
2133
python -m pip install -r requirements.txt
34+
2235
- name: Test with pytest
2336
run: |
2437
python -m pytest --cov=x2s3 --cov-report=html --cov-report=term -W ignore::DeprecationWarning --html=htmlcov/test_results.html
38+
2539
- name: Upload pytest and coverage results
2640
uses: actions/upload-artifact@v4
2741
if: always()

0 commit comments

Comments
 (0)