From 29528dc1e71bdb1ce0e90b3f19180fa7ddeea31a Mon Sep 17 00:00:00 2001 From: Roy Reznik Date: Sat, 30 Dec 2023 12:05:09 +0200 Subject: [PATCH 1/2] Adding lint to actions --- .github/workflows/{ci.yml => tests.yml} | 28 ++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) rename .github/workflows/{ci.yml => tests.yml} (59%) diff --git a/.github/workflows/ci.yml b/.github/workflows/tests.yml similarity index 59% rename from .github/workflows/ci.yml rename to .github/workflows/tests.yml index e417dda..9923dc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,30 @@ -name: CI -on: pull_request +name: Test +on: + push: + branches: + - master + pull_request: jobs: - ci: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: "3.11" + - uses: actions/cache@v3 + id: cached-poetry-dependencies + with: + path: .venv + key: venv-Linux-3.11-${{ hashFiles('**/pyproject.toml') }} + - name: install deps + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + run: make install + - name: lint + run: make lint + + test: strategy: fail-fast: false matrix: From ce63a1cf7673997d06af82ec1e7bb7f8578a1381 Mon Sep 17 00:00:00 2001 From: Roy Reznik Date: Sat, 30 Dec 2023 12:10:20 +0200 Subject: [PATCH 2/2] Fix missing poetry --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9923dc9..aba42cd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: "3.11" + - uses: snok/install-poetry@v1 - uses: actions/cache@v3 id: cached-poetry-dependencies with: