Skip to content

Commit

Permalink
run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matjam committed Jan 12, 2024
1 parent cb9fb5f commit c2698e7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package
name: PR Checks

on:
pull_request:
Expand All @@ -19,13 +19,6 @@ jobs:
python-version: "3.9"
cache: "pip"

# this caches the entire python installation, including all packages, so that we don't have to reinstall them every time
# we run this action. This is a huge time saver.
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}

- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -43,3 +36,6 @@ jobs:

- name: Check black formatting
run: black --check --line-length=100 src tests

- name: Run all tests
run: pytest --cov=. tests

0 comments on commit c2698e7

Please sign in to comment.