Nidhal Baccouri
commited on
Commit
·
9cf8a17
1
Parent(s):
dfd6477
updated poetry deps
Browse files- .github/workflows/test.yml +13 -2
.github/workflows/test.yml
CHANGED
|
@@ -19,12 +19,23 @@ jobs:
|
|
| 19 |
- name: Install poetry
|
| 20 |
run: curl -sSL https://install.python-poetry.org | python3 -
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- name: Install dependencies
|
| 23 |
run: |
|
| 24 |
-
poetry
|
|
|
|
| 25 |
poetry install
|
| 26 |
|
| 27 |
- name: Run tests
|
| 28 |
run: |
|
| 29 |
-
poetry
|
| 30 |
poetry run pytest
|
|
|
|
| 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 |
+
|
| 28 |
+
- name: Check env
|
| 29 |
+
run: |
|
| 30 |
+
ls ~/.poetry -a
|
| 31 |
+
|
| 32 |
- name: Install dependencies
|
| 33 |
run: |
|
| 34 |
+
source "$HOME/.poetry/env"
|
| 35 |
+
poetry config virtualenvs.in-project true
|
| 36 |
poetry install
|
| 37 |
|
| 38 |
- name: Run tests
|
| 39 |
run: |
|
| 40 |
+
source "$HOME/.poetry/env"
|
| 41 |
poetry run pytest
|