This commit is contained in:
gowridurgad 2024-05-20 11:42:14 +00:00 committed by GitHub
commit 03ba23186a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 3 deletions

View File

@ -310,12 +310,18 @@ steps:
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: '3.9' python-version: '3.9'
cache: 'poetry' - name: Install poetry
run: python -m pip install poetry
- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- run: poetry install - run: poetry install
- run: poetry run pytest - run: poetry run pytest
``` ```