From fd32c06439da5f30827658b1c64669a1243b47c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 9 Jan 2024 18:53:46 +0100 Subject: [PATCH] fix: Install poetry properly in CI --- .github/workflows/mypy.yml | 7 +++++-- .github/workflows/test_api.yml | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 672a2a3..ceab8e1 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -17,15 +17,18 @@ jobs: steps: - uses: actions/checkout@v4 + + - name: Install poetry + run: pipx install poetry + - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{matrix.python-version}} cache: 'poetry' - - name: Install poetry + - name: Instal run: | - python -m pip install --upgrade pip poetry poetry install - name: Test with MyPy diff --git a/.github/workflows/test_api.yml b/.github/workflows/test_api.yml index 6a0c806..a1765c0 100644 --- a/.github/workflows/test_api.yml +++ b/.github/workflows/test_api.yml @@ -17,6 +17,10 @@ jobs: steps: - uses: actions/checkout@v4 + + - name: Install poetry + run: pipx install poetry + - name: Set up Python uses: actions/setup-python@v5 with: @@ -41,7 +45,6 @@ jobs: - name: Install with poetry run: | - python -m pip install --upgrade pip poetry poetry install echo PHISHTANK_HOME=`pwd` > .env poetry run start