Skip to content

Add recent(-ish) top-level packages to pyproject.toml config #423

Add recent(-ish) top-level packages to pyproject.toml config

Add recent(-ish) top-level packages to pyproject.toml config #423

Workflow file for this run

name: Unit Tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
# These have to be strings, as, e.g., 3.10 and 3.1 are NOT the same.
- "3.9"
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install gretel-synthetics
run: pip install -e .[all,test] --use-deprecated=legacy-resolver
- name: Lint
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics src/
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=30 --max-line-length=120 --statistics src/
- name: Test
run: pytest -s -vv --cov src --cov-report term-missing tests/
- uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Unit Test
only_mention_fail: here
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()