Skip to content

Commit

Permalink
Run unittest with python -m
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcoe committed Mar 31, 2024
1 parent 3b4b971 commit e442a75
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
- name: Install virtual env and dependencies
run: |
python -m pip install --upgrade pip
python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
- name: Type checks
run: |
mypy *.py --check-untyped-defs
python -m mypy *.py --check-untyped-defs
- name: Tests
run: |
unittest discover .
python -m unittest discover .

0 comments on commit e442a75

Please sign in to comment.