From 6991b61b3092b1e6929dd978e32dded67905c752 Mon Sep 17 00:00:00 2001 From: Tomas Gruner <47506558+MegaRedHand@users.noreply.github.com> Date: Wed, 8 May 2024 22:23:00 -0300 Subject: [PATCH] ci: update CI --- .github/workflows/python-app.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index ff90393..c4c69c1 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -13,18 +13,29 @@ permissions: contents: read jobs: - build: + ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Install Python + id: setup-python + uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" + cache: "poetry" + - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Test with pytest - run: pytest . + run: poetry install --no-interaction --no-root + + - name: Run tests + run: make test