You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
571 B

  1. name: Unit tests
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: Set up Python
  9. uses: actions/setup-python@v1
  10. with:
  11. python-version: 3.8
  12. - name: Install dependencies
  13. run: |
  14. pip install --upgrade pip pipenv
  15. pipenv sync -d
  16. - name: Unit tests
  17. env:
  18. COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  19. run: |
  20. pipenv run python -m coverage run -m unittest test
  21. COVERALLS_REPO_TOKEN=$COVERALLS_TOKEN pipenv run coveralls