Skip to content

Commit

Permalink
fix: fix tests and workflow
Browse files Browse the repository at this point in the history
fixes: #243
  • Loading branch information
alexgarel authored Apr 21, 2023
2 parents cc52e0a + 0c40ed5 commit 80c3779
Show file tree
Hide file tree
Showing 5 changed files with 527 additions and 499 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
- release-v*.*.*

env:
POETRY_VERSION: '1.1.13'
POETRY_VERSION: "1.1.13"
POETRY_CACHE_DIR: .poetry_cache
PYTHON_VERSION: '3.x'
PYTHON_VERSION: "3.x"

jobs:
dev:
Expand Down Expand Up @@ -38,19 +38,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry

- uses: actions/[email protected]
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install poetry
run: pip install --user poetry==${{ env.POETRY_VERSION }}

- uses: actions/cache@v3
id: cache-poetry
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: poetry install
Expand All @@ -70,4 +63,5 @@ jobs:
with:
collection: tests/integration/openfoodfacts-events.postman_collection.json
environment: tests/integration/off-local.postman_environment.json
delayRequest: 5000
- run: make clean
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ lint: isort black

integration:
make dev
newman run tests/integration/openfoodfacts-events.postman_collection.json -e tests/integration/off-local.postman_environment.json
newman run tests/integration/openfoodfacts-events.postman_collection.json -e tests/integration/off-local.postman_environment.json --delay-request 5000
make hdown

unit:
Expand Down
Loading

0 comments on commit 80c3779

Please sign in to comment.