diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..f06385c --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,17 @@ +name: Python +on: + push: + branches: [ main ] + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + - uses: abatilo/actions-poetry@v2.1.4 + - run: poetry install + - run: poetry run black --check --verbose . \ No newline at end of file diff --git a/justfile b/justfile index bda1e4a..9189728 100644 --- a/justfile +++ b/justfile @@ -40,4 +40,7 @@ clippy: # Runs black to format Python code black: - poetry run black . + poetry run black --check . + +pytest: develop + poetry run pytest \ No newline at end of file