Skip to content

Commit

Permalink
Github testing (orest-d#30)
Browse files Browse the repository at this point in the history
Create pythonapp.yml
Closes orest-d#20
  • Loading branch information
martin-schlipf authored Feb 27, 2020
1 parent 1f348fe commit 8ef6871
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: tests

on: [push, pull_request]

jobs:
tests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry -V
poetry install
- name: Test with pytest
run: |
poetry run pytest --cov=py
- name: Check code style
run: |
poetry run black --check src
poetry run black --check tests

0 comments on commit 8ef6871

Please sign in to comment.