Nidhal Baccouri commited on
Commit
bfbeeb1
·
1 Parent(s): b31adc0

updated poetry env in the pipeline

Browse files
Files changed (1) hide show
  1. .github/workflows/test.yml +3 -9
.github/workflows/test.yml CHANGED
@@ -19,18 +19,12 @@ jobs:
19
  - name: Install poetry
20
  run: curl -sSL https://install.python-poetry.org | python3 -
21
 
22
- - name: Set up cache
23
- uses: actions/[email protected]
24
- with:
25
- path: .venv
26
- key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
27
  - name: Install dependencies
28
  run: |
29
- source "$HOME/.poetry/env"
30
- poetry config virtualenvs.in-project true
31
- poetry install
32
 
33
  - name: Run tests
34
  run: |
35
- source "$HOME/.poetry/env"
36
  poetry run pytest
 
19
  - name: Install poetry
20
  run: curl -sSL https://install.python-poetry.org | python3 -
21
 
 
 
 
 
 
22
  - name: Install dependencies
23
  run: |
24
+
25
+ poetry shell && poetry env info --path && poetry install
 
26
 
27
  - name: Run tests
28
  run: |
29
+ poetry shell
30
  poetry run pytest