Skip to content

Commit

Permalink
Modernize Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
JureZmrzlikar committed Feb 7, 2024
1 parent f3836d2 commit f50f17f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -30,14 +30,14 @@ jobs:
- tox-env: py312
python-version: "3.12"
- tox-env: linters
python-version: 3.8
python-version: "3.11"
- tox-env: package
python-version: 3.8
python-version: "3.11"

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 }}
- name: Install Dependencies
Expand All @@ -47,24 +47,24 @@ jobs:
run: >
tox -e ${{ matrix.tox-env }}
- name: Upload coverage to Codecov
if: matrix.tox-env == 'py38' || matrix.tox-env == 'py39' || matrix.tox-env == 'py310' || matrix.tox-env == 'py311'
if: matrix.tox-env == 'py38' || matrix.tox-env == 'py39' || matrix.tox-env == 'py310' || matrix.tox-env == 'py311' || matrix.tox-env == 'py312'
uses: codecov/codecov-action@v1
with:
file: .coverage

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

needs: test

if: "startsWith(github.ref, 'refs/tags')"

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.11"
- name: Install build
run: python -m pip install --user build
- name: Build a binary wheel and a source tarball
Expand Down

0 comments on commit f50f17f

Please sign in to comment.