Skip to content

Commit

Permalink
Install poetry in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienheureux committed Jan 15, 2025
1 parent 4d4adb8 commit dee8960
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install gdal-bin
- name: Install Dependencies
run: pip install --require-hashes --no-deps -r airflow-requirements.txt -r requirements.txt -r dev-requirements.txt
- name: Install poetry
uses: abatilo/actions-poetry@v4
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install --group dev,airflow
- name: Run unit tests
run: pytest unit_tests
- name: Run integration tests
Expand Down Expand Up @@ -136,8 +147,6 @@ jobs:
- name: Run Playwright tests
run: npx playwright test --reporter=list --update-snapshots --shard=${{ matrix.shard }}



- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit dee8960

Please sign in to comment.