Skip to content

Merge pull request #33 from GertjanBisschop/del-cache #8

Merge pull request #33 from GertjanBisschop/del-cache

Merge pull request #33 from GertjanBisschop/del-cache #8

Workflow file for this run

name: Tests
permissions:
contents: read
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- uses: pre-commit/[email protected]
with:
cache: 'pip'
build:
name: Python Test
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: |
pip install -r requirements/dev.txt
- name: Test with pytest
run: |
pytest -xvs