Skip to content

Commit

Permalink
Update check-project.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 3, 2024
1 parent c0e4639 commit 030ca32
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/check-project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: check project via pre-commit hooks
name: Check and Test Python Project

on:
workflow_dispatch:
Expand All @@ -11,20 +11,24 @@ permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
check:
runs-on: ubuntu-22.04

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 1 # 0 if you want to push to repo

- name: Python set up
uses: actions/setup-python@v4
- name: python set up
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"

- name: Python cache set up
uses: actions/cache@v3
- name: python cache set up
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-py-cache
Expand All @@ -35,9 +39,9 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: run pre-commit hooks
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@v3.0.1

# - name: Test with pytest
# - name: run pytest
# run: |
# pip install pytest
# pytest

0 comments on commit 030ca32

Please sign in to comment.