From de01ae234b808fd138ea64b1be2d64cea8da5774 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Wed, 24 Jul 2024 17:50:47 +0200 Subject: [PATCH 1/2] ci: make a release strategy that doesn't suck --- .github/workflows/auto-merge-deps.yml | 14 ++++++++++++++ .github/workflows/labeler.yml | 19 +++++++++++++++++++ .github/workflows/release-draft.yml | 21 +++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 .github/workflows/auto-merge-deps.yml create mode 100644 .github/workflows/labeler.yml create mode 100644 .github/workflows/release-draft.yml diff --git a/.github/workflows/auto-merge-deps.yml b/.github/workflows/auto-merge-deps.yml new file mode 100644 index 0000000..53658e9 --- /dev/null +++ b/.github/workflows/auto-merge-deps.yml @@ -0,0 +1,14 @@ +name: auto-merge + +on: + pull_request: + +jobs: + auto-merge: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ahmadnassri/action-dependabot-auto-merge@v2 + with: + target: minor + github-token: ${{ secrets.AUTO_MERGE }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..24fa103 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,19 @@ +name: Labeler + +on: push + +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + issues: write + content: read + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Run Labeler + uses: crazy-max/ghaction-github-labeler@v5.0.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml new file mode 100644 index 0000000..1459785 --- /dev/null +++ b/.github/workflows/release-draft.yml @@ -0,0 +1,21 @@ +name: Update Draft Release + +on: push + +jobs: + draft-release: + name: Update Draft Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + with: + fetch-depth: 0 + + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Publish the release notes + uses: release-drafter/release-drafter@v6.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 537918e6ee9115324caccb5cb897ad1c11f79221 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Wed, 24 Jul 2024 17:53:05 +0200 Subject: [PATCH 2/2] maint: support py312 --- .github/workflows/test_suite.yaml | 2 +- .github/workflows/warnings-tests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_suite.yaml b/.github/workflows/test_suite.yaml index 6d290ce..4d25f1e 100644 --- a/.github/workflows/test_suite.yaml +++ b/.github/workflows/test_suite.yaml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - python-version: [3.8, 3.9, "3.10", "3.11"] + python-version: [3.9, "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@master with: diff --git a/.github/workflows/warnings-tests.yaml b/.github/workflows/warnings-tests.yaml index 3dbd0e7..9b2c1b2 100644 --- a/.github/workflows/warnings-tests.yaml +++ b/.github/workflows/warnings-tests.yaml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.11"] + python-version: ["3.12"] steps: - uses: actions/checkout@master with: