Skip to content

Commit

Permalink
CI: update actions and add python 3.10 to the matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Sep 3, 2022
1 parent d136b8a commit 46171c6
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
---
name: CI
on: [ push, pull_request ]
on: [ workflow_dispatch, push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://lpenz/omnilint:v0.2
- uses: actions/checkout@v3.0.2
- uses: docker://lpenz/omnilint:0.5
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: piotrpawlaczek/python-blacken@release/stable
- uses: actions/checkout@v3.0.2
- uses: piotrpawlaczek/python-blacken@v22.3.0
with:
line-length: 88
install:
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3.0.2
- uses: actions/setup-python@v4.2.0
with:
python-version: ${{ matrix.python-version }}
- run: python3 -m pip install .
test:
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3.0.2
- uses: actions/setup-python@v4.2.0
with:
python-version: ${{ matrix.python-version }}
- uses: lpenz/ghaction-pytest-cov@v1
Expand All @@ -60,13 +62,13 @@ jobs:
needs: [ omnilint, black, install, test ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.0.2
- id: version
uses: docker://lpenz/ghaction-version-gen:0.3
uses: docker://lpenz/ghaction-version-gen:0.10.0
- uses: docker://lpenz/ghaction-python-stdeb:0.3
with:
debian_revision: ${{ steps.version.outputs.distance }}
- uses: docker://lpenz/ghaction-packagecloud:v0.3
- uses: docker://lpenz/ghaction-packagecloud:0.4
if: steps.version.outputs.version_commit != ''
with:
repository: debian/debian/bullseye
Expand Down

0 comments on commit 46171c6

Please sign in to comment.