Skip to content

Commit

Permalink
Merge pull request #1 from mkalcok/gh-actions
Browse files Browse the repository at this point in the history
ci: Add github actions
  • Loading branch information
mkalcok authored Dec 25, 2024
2 parents ed89805 + 4c82cf6 commit c6999b5
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 c6999b5

Please sign in to comment.