32 lines
686 B
YAML
32 lines
686 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 --diff pandas_ods_reader/ tests/
|
|
- name: Test with pytest
|
|
run: |
|
|
python -m pytest tests/
|