From c14fa2c5107541aa04f2ddff543153a42f870111 Mon Sep 17 00:00:00 2001 From: Luciano Filho Date: Fri, 22 Sep 2023 03:02:09 -0300 Subject: [PATCH] add ci/cd --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3fb8aed --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: CI Workflow + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Install poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + + - name: Install dependencies with poetry + run: poetry install + + - name: Run pre-commit hooks + run: | + pre-commit run --all-files + + - name: Run pytest + run: poetry run pytest