Skip to content

Commit

Permalink
fix: Install poetry properly in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jan 9, 2024
1 parent 783ac8d commit fd32c06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit fd32c06

Please sign in to comment.