1
0
mirror of synced 2024-12-11 22:46:00 +01:00
jubeatools/.github/workflows/ci.yml
Stepland 88fbcda421 Add ci testing
Closes #2
2021-05-19 17:26:19 +02:00

27 lines
655 B
YAML

name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install project
run: poetry install
- name: Code style
run: |
poetry run isort --check-only
poetry run black --check
- name: Lint code
run: poetry run sh ./utils/check_code.sh
- name: Unit tests
run: poetry run pytest