Skip to content

Gradient testing

Gradient testing #46

Workflow file for this run

# This workflow will install Python dependencies, run tests with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Black formatting and tests
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
options: "--line-length 100 --check --diff"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
python3 -m pytest -vv -s