From 7cd1d4cc5e332211bcd6a65f9017fa83edf1add5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Mart=C3=ADnez?= <103188721+hectorzin@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:13:36 +0100 Subject: [PATCH] poetry --- .github/workflows/pre-commit.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..033cab1 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + echo "$HOME/.local/bin" >> $GITHUB_PATH + + - name: Install Dependencies + run: | + poetry install --with dev + + - name: Run Pre-Commit + run: | + poetry run pre-commit run --all-files