Skip to content

Commit

Permalink
Refresh our github workflows. (ros#40676)
Browse files Browse the repository at this point in the history
* Refresh our github workflows.

1.  Use "runs-on: ubuntu-22.04" in all workflows, so
we are completely consistent.
2.  Update the versions of actions that we depend on,
to get the latest bugfixes.
3.  Update the version of Python to 3.10, which matches what
is in Ubuntu 22.04.
4.  Update our list of EOL distros so we aren't incorrectly
leaving things open.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Apr 29, 2024
1 parent b8ce311 commit f3ecc17
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ pull_request_rules:
- and:
- label=end-of-life
# Active ROS 1 distros
- label!=melodic
- label!=noetic
# Active ROS 2 distros
- label!=foxy
- label!=galactic
- label!=humble
- label!=iron
- label!=jazzy
- label!=rolling
# Other labels
- label!=rosdep
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ permissions:
jobs:
checks:
name: rosdistro / rosdep checks
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4 # b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5 # 82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: ${{ matrix.python-version }}
- name: Fetch upstream (to enable diff)
Expand All @@ -35,14 +35,14 @@ jobs:
run: pytest -s test
yamllint:
name: Yaml Linting
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4 # b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5 # 82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
permissions:
contents: read # for actions/labeler to determine modified files
pull-requests: write # for actions/labeler to add labels to PRs
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/labeler@v3
- uses: actions/labeler@v5 # 8558fd74291d67161a8a78ce36a881fa63b766a9
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler-config.yaml"
4 changes: 2 additions & 2 deletions .github/workflows/stale_labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on: # yamllint disable-line rule:truthy

jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/stale@v8 # https://github.com/marketplace/actions/close-stale-issues
- uses: actions/stale@v9 # 28ca1036281a5e5922ead5184a1bbf96e5fc984e
with:
stale-pr-label: 'stale'
stale-pr-message: >
Expand Down

0 comments on commit f3ecc17

Please sign in to comment.