Skip to content

Commit

Permalink
Fix CI deprecation notices (#385)
Browse files Browse the repository at this point in the history
* Remove set-output, use GITHUB_OUTPUT instead, as per deprecation notice. Should resolve #172

* Remove unnecessary whitespace

* Bump Ubuntu version to 22.04

* Update cache & checkout actions to v4 (latest at time of writing)

* Update setup-python to v5 (latest), change python version to 3.10 (default for Ubuntu 22.04)
  • Loading branch information
chrisib authored Nov 11, 2024
1 parent 4411970 commit 91bd797
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile_to_uf2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:

steps:
- name: clone EuroPi
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: europi

- name: clone micropython
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: micropython/micropython
ref: v1.22.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: psf/[email protected]
12 changes: 6 additions & 6 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'

- name: Upgrade pip
run: |
Expand All @@ -25,10 +25,10 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ on:

jobs:
build-n-publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

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

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'

- name: Build firmware tarball
working-directory: software/firmware
run: python setup.py sdist --dist-dir=../dist

- name: Build contrib tarball
working-directory: software
run: python setup.py sdist
Expand All @@ -47,4 +47,3 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: software/dist

16 changes: 8 additions & 8 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Run Python Tests
on:
workflow_call


jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

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

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'

- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python3 -m pip install --upgrade pip==21.3.1
- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}
Expand Down

0 comments on commit 91bd797

Please sign in to comment.