Skip to content

Commit

Permalink
Update workflows (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ittuann committed Sep 19, 2024
1 parent 6fd3172 commit f550d22
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.11
Expand All @@ -28,15 +29,20 @@ jobs:
virtualenvs-in-project: true
installer-parallel: true

- name: Check virtual environment
run: |
poetry --version
poetry check
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
path: ~/.venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --with dev --no-root --no-interaction

- name: Run Script
Expand Down

0 comments on commit f550d22

Please sign in to comment.