Skip to content

Commit

Permalink
eliminate duplicate builds
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Oct 24, 2024
1 parent b3c5af1 commit b323579
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,38 @@ on:
push:
branches: [ main ]

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

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.10"]

steps:

- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install -r requirements.txt
- name: Test with pytest
run: |
python -m pytest --cov=x2s3 --cov-report=html --cov-report=term -W ignore::DeprecationWarning --html=htmlcov/test_results.html
- name: Upload pytest and coverage results
uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit b323579

Please sign in to comment.