Skip to content

Commit

Permalink
ci: Add github actions for unit tests and linting
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kalcok <martin.kalcok@gmail.com>
  • Loading branch information
mkalcok committed Dec 25, 2024
1 parent ed89805 commit 4c82cf6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Python tests

on:
pull_request:
push:
branches: [main]

jobs:
lint:
name: lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry==1.8
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: poetry

- name: Install dependencies
run: |
poetry install
- name: Run linters
run: poetry run tox -e lint
unit:
name: Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry==1.8
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: poetry

- name: Install dependencies
run: |
poetry install
- name: Run linters
run: poetry run tox -e unit

0 comments on commit 4c82cf6

Please sign in to comment.