Skip to content

switch to src organization #6

switch to src organization

switch to src organization #6

Workflow file for this run

name: CI Checks
on: [push]
jobs:
autoformat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run black to test code linting
uses: psf/black@stable
with:
options: "--check --verbose"
jupyter: true
- name: Run isort to organize imports
uses: isort/isort-action@master
linting:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
pip install -e ".[develop]"
- name: Lint
run: |
pytest . --pylint -m pylint --pylint-rcfile=.python_starter_pylintrc
static-type-checking:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
pip install -e ".[develop]"
- name: Mypy
run: |
mypy .
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
pip install -e ".[develop]"
- name: Pytest
run: |
pytest tests/