Skip to content

Commit

Permalink
cicd: update actions versions, stalebot, + templates from template repo
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Jul 15, 2024
1 parent 5e105fd commit 619f45d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ body:
- "Yes, but I can only provide ideas and feedback."
- "No, I cannot contribute."
validations:
required: true
required: false
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ body:
- "Yes, but I can only provide ideas and feedback."
- "No, I cannot contribute."
validations:
required: true
required: false
16 changes: 8 additions & 8 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand All @@ -22,10 +22,10 @@ jobs:
strategy:
fail-fast: false
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.11"

Expand All @@ -37,10 +37,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"

Expand All @@ -54,10 +54,10 @@ jobs:
env:
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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.11

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- 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 pypa/build
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand All @@ -42,7 +42,7 @@ jobs:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down
37 changes: 20 additions & 17 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: "Make comments on stale issues and PRs"
name: "Stalebot for issues and PRs"

on:
schedule:
- cron: "30 13 * * *"
- cron: "30 13 * * 1-5"

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
remove-stale-when-updated: true
stale-high-priority:
uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml
with:
days-before-issue-stale: 90
days-before-pr-stale: 1
labels: priority:high

days-before-issue-stale: 45
stale-issue-label: stale
stale-issue-message: "This issue is stale because it has been open 45 days with no activity. Please make a comment for triaging or closing the issue."
stale-medium-priority:
uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml
with:
days-before-issue-stale: 135
days-before-pr-stale: 3
labels: priority:medium

days-before-pr-stale: 7
stale-pr-label: stale
stale-pr-message: "This PR is stale because it has been open 7 days with no activity. Please review this PR."
stale-low-priority:
uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml
with:
days-before-issue-stale: 180
days-before-pr-stale: 7
labels: priority:low

0 comments on commit 619f45d

Please sign in to comment.