Skip to content

Commit

Permalink
Formatting, rename, add mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Mar 10, 2024
1 parent 7f5d403 commit 117832c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application
name: Run tests

on:
push:
Expand All @@ -18,20 +15,28 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install . --no-deps
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Run pre-commit
uses: pre-commit/[email protected]
with:
extra_args: --all-files --verbose --show-diff-on-failure

- name: Test with pytest
run: |
pytest -vv
- name: Run mypy
run: |
mypy src/fontra/ test-py/

0 comments on commit 117832c

Please sign in to comment.