diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 747136bf..572d3e0b 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -16,35 +16,20 @@ on: jobs: build-wheels: - runs-on: ${{ matrix.os }} - strategy: - matrix: - include: - - os: ubuntu-latest - python: 38 - platform: manylinux_x86_64 - - os: ubuntu-latest - python: 39 - platform: manylinux_x86_64 - - os: ubuntu-latest - python: 310 - platform: manylinux_x86_64 - - os: ubuntu-latest - python: 311 - platform: manylinux_x86_64 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - name: Install dependencies - run: python -m pip install --upgrade pip setuptools build + run: pipx install build + - name: Build sdist and wheels - run: python -m build + run: pyproject-build + - name: Store wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: dist @@ -55,10 +40,11 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - name: Download dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifact path: dist + - name: Publish uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/.github/workflows/linux-test.yml b/.github/workflows/linux-test.yml index e28aebe5..6f832478 100644 --- a/.github/workflows/linux-test.yml +++ b/.github/workflows/linux-test.yml @@ -2,17 +2,26 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions --- name: linux-tests -on: [pull_request, push] +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: linux-test: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 - uses: jurplel/install-qt-action@v3