Skip to content

Commit a8aab1c

Browse files
committed
build: Update pipeline to use poetry
1 parent 7891aaf commit a8aab1c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/pytest.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
- name: Set up Python ${{ matrix.python-version }}
3333
uses: actions/setup-python@v2
3434
with:
35-
python-version: ${{ matrix.python-version }}
35+
python-version: ${{ matrix.python-version }}
36+
- name: Install poetry
37+
uses: snok/install-poetry@v1
38+
with:
39+
virtualenvs-create: true
40+
virtualenvs-in-project: true
3641
- name: Install dependencies
37-
run: |
38-
python -m pip install --upgrade pip
39-
pip install -r tests/dev.requirements.txt
42+
run: poetry install --no-interaction --no-root
4043
- name: Test with pytest
4144
env:
4245
POSTGRES_DB: test
@@ -45,4 +48,5 @@ jobs:
4548
POSTGRES_HOST: localhost
4649
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
4750
run: |
51+
source .venv/bin/activate
4852
pytest

0 commit comments

Comments
 (0)