diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b832550..21020d0 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,18 +5,32 @@ name: Python package on: push: - branches: [ "main" ] + branches: + - main pull_request: - branches: [ "main" ] + branches: + - main + - devel + - packaging-updates + types: + - opened + - reopened + - synchronize + - ready_for_review + + +concurrency: + group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request'}} jobs: - build: + build-lint-pytest: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -27,7 +41,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + python -m pip install uv python -m pip install flake8 pytest + uv pip compile pyproject.toml -o requirements.txt if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: |