-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow: remove redundant Python caching
- Loading branch information
Showing
1 changed file
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,34 +15,29 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 1 # 0 if you want to push to repo | ||
|
||
- name: python set up | ||
- name: Python set up | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
|
||
- name: python cache set up | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-py-cache | ||
- name: Run pre-commit hooks | ||
uses: pre-commit/[email protected] | ||
|
||
- name: install dependencies | ||
- name: Install dependencies | ||
if: ${{ hashFiles('requirements.txt') != '' }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: run pre-commit hooks | ||
uses: pre-commit/[email protected] | ||
pip install -r requirements.txt | ||
- name: run pytest | ||
- name: Install and run pytest | ||
run: | | ||
pip install pytest | ||
cp src/rememberthemilk.toml.example src/rememberthemilk.toml | ||
pip install pytest | ||
pytest |