Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# versions of Python.
#
unit-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
max-parallel: 3
matrix:
Expand All @@ -38,13 +38,15 @@ jobs:

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1 # to support Python 3.8

- name: Run tests
run: |
tox -e py

mot-metrics:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

Expand All @@ -66,7 +68,7 @@ jobs:
tox -e mot-py39

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

Expand All @@ -87,14 +89,14 @@ jobs:
mv norfair-$(poetry version -s) norfair-dist

- name: Save artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: norfair-dist
path: norfair-dist

install:
needs: [build]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
max-parallel: 3
matrix:
Expand All @@ -106,7 +108,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Download a single artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: norfair-dist
path: ./norfair-dist
Expand All @@ -123,7 +125,7 @@ jobs:
# Executed only if GitHub release is "published".
#
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [unit-tests, mot-metrics]
if: github.event_name == 'release'
env:
Expand All @@ -138,6 +140,8 @@ jobs:

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1 # to support Python 3.8

- name: Release to PyPI
env:
Expand All @@ -148,7 +152,7 @@ jobs:


deploy-doc:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [release]
if: github.event_name == 'release'
env:
Expand All @@ -163,6 +167,8 @@ jobs:

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1 # to support Python 3.8

- name: Install dependencies
run: pip install -r docs/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
# Single deploy job since we're just deploying
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]

jobs:
linting:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -21,7 +21,7 @@ jobs:
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
update_release_draft:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: release-drafter/release-drafter@v5
env:
Expand Down
Loading