From 54c908f0a612e78901deb3d29f53d92330aa8dc0 Mon Sep 17 00:00:00 2001 From: jjshoots Date: Thu, 27 Feb 2025 22:25:24 +0800 Subject: [PATCH 1/7] bump upload artifact --- .github/workflows/build-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 747136bf..6e9104f0 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -44,7 +44,7 @@ jobs: - name: Build sdist and wheels run: python -m build - name: Store wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: dist From bf74635c1399db4a026a6c19dede7f706ff8809c Mon Sep 17 00:00:00 2001 From: jjshoots Date: Thu, 27 Feb 2025 22:27:59 +0800 Subject: [PATCH 2/7] bump download artifact --- .github/workflows/build-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 6e9104f0..5ff84c3e 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -55,7 +55,7 @@ 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 From a8da02a68cf55be2bf48255b8fe9a43c3ab6dc38 Mon Sep 17 00:00:00 2001 From: jjshoots Date: Thu, 27 Feb 2025 22:35:54 +0800 Subject: [PATCH 3/7] bump checkout and setup python --- .github/workflows/build-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 5ff84c3e..cce7e3d5 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -34,9 +34,9 @@ jobs: platform: manylinux_x86_64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install dependencies From 0720e798cd2eac35b98709696d256f485eeec369 Mon Sep 17 00:00:00 2001 From: jjshoots Date: Thu, 27 Feb 2025 22:38:36 +0800 Subject: [PATCH 4/7] copy from gymnasium --- .github/workflows/build-publish.yml | 30 ++++++++--------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index cce7e3d5..572d3e0b 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -16,33 +16,18 @@ 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@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' + - 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@v4 with: @@ -59,6 +44,7 @@ jobs: with: name: artifact path: dist + - name: Publish uses: pypa/gh-action-pypi-publish@release/v1 with: From 92be8a14e1d54782b522209c5e850b2be0ed2d34 Mon Sep 17 00:00:00 2001 From: jjshoots Date: Thu, 27 Feb 2025 22:46:58 +0800 Subject: [PATCH 5/7] don't double work' --- .github/workflows/linux-test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-test.yml b/.github/workflows/linux-test.yml index e28aebe5..30526eaa 100644 --- a/.github/workflows/linux-test.yml +++ b/.github/workflows/linux-test.yml @@ -2,7 +2,13 @@ # 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: + - "**" + pull_request: + branches: + - master permissions: contents: read @@ -12,7 +18,7 @@ jobs: 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 From 57f90ac6a0223ae3c63546798e94085cc3f3f57a Mon Sep 17 00:00:00 2001 From: jjshoots Date: Thu, 27 Feb 2025 22:47:50 +0800 Subject: [PATCH 6/7] do thing --- .github/workflows/linux-test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-test.yml b/.github/workflows/linux-test.yml index 30526eaa..69e64935 100644 --- a/.github/workflows/linux-test.yml +++ b/.github/workflows/linux-test.yml @@ -4,11 +4,10 @@ name: linux-tests on: push: - branches: - - "**" - pull_request: branches: - master + pull_request: + types: [opened, synchronize, reopened] permissions: contents: read From b6caaf81fef25b4a7ee6bb669c9f50e29c799a3e Mon Sep 17 00:00:00 2001 From: jjshoots Date: Thu, 27 Feb 2025 22:49:15 +0800 Subject: [PATCH 7/7] concurrency --- .github/workflows/linux-test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/linux-test.yml b/.github/workflows/linux-test.yml index 69e64935..6f832478 100644 --- a/.github/workflows/linux-test.yml +++ b/.github/workflows/linux-test.yml @@ -12,6 +12,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: linux-test: runs-on: ubuntu-latest