From 9047e10daafddb511913f991f183fca4c0cc8e75 Mon Sep 17 00:00:00 2001 From: Martin Kalcok Date: Wed, 25 Dec 2024 16:13:44 +0100 Subject: [PATCH] ci: Add github actions WIP Signed-off-by: Martin Kalcok --- .github/workflows/python.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/python.yaml diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml new file mode 100644 index 0000000..b07f901 --- /dev/null +++ b/.github/workflows/python.yaml @@ -0,0 +1,27 @@ +name: Python tests + +on: + - push + - pull_request + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + cache: poetry + + - name: Install dependencies + run: | + apt install pipx + pipx ensurepath + pipx install poetry==1.8.5 + poetry install + + - name: Run linters + run: poetry run tox -e lint \ No newline at end of file