Skip to content

Commit

Permalink
Workflow: remove redundant Python caching
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed May 3, 2024
1 parent 514a1a9 commit 3b9b97f
Showing 1 changed file with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout repository
- name: Check out 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/action@v3.0.1

- name: install dependencies
- name: Install dependencies
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/action@v3.0.1

- name: run pytest
- name: Install and run pytest
run: |
pip install pytest
cp src/rememberthemilk.toml.example src/rememberthemilk.toml
pip install pytest
pytest

0 comments on commit 3b9b97f

Please sign in to comment.