Skip to content

Commit

Permalink
Github workflow to use pytest
Browse files Browse the repository at this point in the history
pytest discovers all unit tests (both unittest and pytest).
unittest only discovered its own.
  • Loading branch information
Waino committed Oct 2, 2023
1 parent fc84d2f commit d24f915
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
pip install -e .
pip install -r requirements.opt.txt
pip install flake8==4.0.1
pip install pytest==7.0.1 pytest-flake8==1.1.1
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 --max-line-length 120 .
- name: Unit tests
run: |
python -m unittest discover
python -m pytest
# ## Broken in FoTraNMT
# - name: Test vocabulary build
# run: |
Expand Down Expand Up @@ -410,4 +411,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
CLEAN: true
CLEAN: true

0 comments on commit d24f915

Please sign in to comment.