From 8ef6871282bccfe4d6fcbeed5321a97385e49f13 Mon Sep 17 00:00:00 2001 From: Martin Schlipf Date: Thu, 27 Feb 2020 16:08:41 +0100 Subject: [PATCH] Github testing (#30) Create pythonapp.yml Closes #20 --- .github/workflows/pythonapp.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pythonapp.yml diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml new file mode 100644 index 00000000..bbda6eed --- /dev/null +++ b/.github/workflows/pythonapp.yml @@ -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