Skip to content

Commit

Permalink
github: rename ci to tests and merge some jobs
Browse files Browse the repository at this point in the history
This aligns better with LXD Github CI.

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 13, 2023
1 parent b0fff67 commit 26b3290
Showing 1 changed file with 16 additions and 30 deletions.
46 changes: 16 additions & 30 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
name: CI tests

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
- push
- pull_request

jobs:
lint-python:
runs-on: ubuntu-22.04
steps:
- name: Repository checkout
uses: actions/checkout@v3
permissions:
contents: read

- name: Install dependencies
run: |
pip install --upgrade pip tox
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

- name: Lint Python files
run: |
tox -e lint
lint-shell:
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Repository checkout
Expand All @@ -32,21 +20,19 @@ jobs:
- name: Lint shell files
uses: ludeeus/action-shellcheck@master

check:
runs-on: ubuntu-22.04
steps:
- name: Repository checkout
uses: actions/checkout@v3

- name: Install dependencies
run: |
pip install --upgrade pip tox
- name: Lint Python files
run: |
tox -e lint
- name: Typecheck Python files
run: |
tox -e check
test:
coverage:
strategy:
matrix:
python-version: ["3.8", "3.10", "3.11"]
Expand All @@ -65,7 +51,7 @@ jobs:
run: |
pip install --upgrade pip tox codecov
- name: Test
- name: Test coverage
run: |
tox -e coverage
codecov
Expand Down

0 comments on commit 26b3290

Please sign in to comment.