pandas_ods_reader/.github/workflows/lint_and_test.yml

32 lines
672 B
YAML

name: Lint and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black pytest
pip install .
- name: Lint with black
run: |
# stop the build if there are Python syntax errors or undefined names
black --check pandas_ods_reader/
- name: Test with pytest
run: |
python -m pytest tests/