Skip to content

Commit

Permalink
Specified to run with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
pachovit committed Jul 30, 2024
1 parent 2e155c6 commit 41bf77b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ jobs:
image: cimg/python:3.9
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update && apt-get install -y curl && \
curl -sSL https://install.python-poetry.org | python3 - && \
ln -s /github/home/.local/bin/poetry /usr/local/bin/poetry
- name: Configure Poetry
run: poetry config virtualenvs.create false && poetry install
- name: Run tests
run: PYTHONPATH=. pytest --cov=echopages -s tests
run: PYTHONPATH=. poetry run pytest --cov=echopages -s tests

build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ RUN poetry config virtualenvs.create false && poetry install --no-dev
# Copy the rest of the application code
COPY echopages echopages

CMD ["python3", "-m", "echopages.main"]
CMD ["poetry", "run", "python3", "-m", "echopages.main"]

0 comments on commit 41bf77b

Please sign in to comment.