Skip to content

Commit

Permalink
feat: Add caching to python setup step
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik003 committed Jan 20, 2023
1 parent 5283b97 commit 954b65a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
cache-dependency-path: ./backend/pyproject.toml
python-version: "3.11"
- name: Install pre-commit
run: |-
python -m pip install pre-commit
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
cache-dependency-path: ./backend/pyproject.toml
python-version: "3.11"
- name: Install dependencies
run: |
pip install "./backend[dev]"
Expand Down

0 comments on commit 954b65a

Please sign in to comment.