Skip to content

Commit

Permalink
[Env] Upgrade Github Actions steps (#100)
Browse files Browse the repository at this point in the history
* [Env] Upgrade Github Actions steps

* Run on Python 3.11 as well

* Use Ubuntu 22.04, remove unneeded legacy Python versions

* Add setuptools to dev requirements

* Add workflow dispatch trigger
  • Loading branch information
geoffxy authored Mar 9, 2024
1 parent da78666 commit f54276f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-trivial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ on:
jobs:
build:
name: Build and Test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.10', '3.12']

steps:
- run: 'echo "No build required."'
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,25 @@ on:
branches: [ master ]
paths-ignore:
- 'website/**'
workflow_dispatch: {}

jobs:
build:
name: Build and Test
timeout-minutes: 30

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
# Ubuntu 20.04 LTS bundles Python 3.8
# Ubuntu 22.04 LTS bundles Python 3.10
python-version: ['3.8', '3.10', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website-trivial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ on:
jobs:
build_website:
name: Test Website Build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- run: 'echo "No build required."'
11 changes: 6 additions & 5 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ on:
branches: [ master ]
paths:
- 'website/**'
workflow_dispatch: {}

jobs:
build_website:
name: Test Website Build
timeout-minutes: 30

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set Up Node 16
uses: actions/setup-node@v2
- name: Set Up Node 20
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- name: Run Website Build Script
run: ./tools/build-website.sh --install-deps
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"pytest",
"pytest-timeout",
"pyyaml",
"setuptools",
]

KEYWORDS = [
Expand Down

0 comments on commit f54276f

Please sign in to comment.