Skip to content

[pre-commit.ci] pre-commit autoupdate #170

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #170

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install and Run Pre-commit
uses: pre-commit/action@v2.0.3
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
pip install --upgrade pip wheel
pip install -r requirements/local.txt
- name: Run pytest
run: pytest tests/