From a722be5e1af8fedd3cfb90f4ade523f932640234 Mon Sep 17 00:00:00 2001 From: itsjrsa Date: Sat, 9 Mar 2024 20:58:22 +0000 Subject: [PATCH] Changed dependencies instalation. --- .github/workflows/main.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 71b4eba..fc1155c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,6 @@ env: POETRY_CACHE_DIR: '/var/cache/pypoetry' POETRY_HOME: '/usr/local' - jobs: lint: runs-on: ubuntu-latest @@ -31,7 +30,6 @@ jobs: run: | git config --global url."https://oauth2:${{ secrets.GITLAB_TOKEN }}@gitlab.inesctec.pt/".insteadOf "https://gitlab.inesctec.pt/" - - name: Install dependencies run: | python -m pip install --upgrade pip @@ -40,7 +38,7 @@ jobs: - name: Lint code run: | - flake8 + flake8 . test: runs-on: ubuntu-latest @@ -63,14 +61,12 @@ jobs: git config --global url."https://oauth2:${{ secrets.GITLAB_TOKEN }}@gitlab.inesctec.pt/".insteadOf "https://gitlab.inesctec.pt/" - name: Install dependencies - run: | - pip install -r requirements.txt - pip install pytest pytest-cov - - - name: Run tests with coverage run: | python -m pip install --upgrade pip pip install poetry poetry install --with test + + - name: Run tests with coverage + run: | cd src/market - pytest --cov + pytest --cov \ No newline at end of file