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.
 
 
 
 

42 lines
949 B

  1. name: Unit tests
  2. on:
  3. push:
  4. branches: [master, features]
  5. pull_request:
  6. branches: [master, features]
  7. jobs:
  8. unit-tests:
  9. runs-on: ${{ matrix.os }}
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. os:
  14. - ubuntu-18.04
  15. - ubuntu-20.04
  16. - macos-10.15
  17. - macos-11.0
  18. python-version:
  19. - '3.7'
  20. - '3.8'
  21. - '3.9'
  22. name: Unit tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
  23. steps:
  24. - uses: actions/checkout@v1
  25. - name: Set up Python
  26. uses: actions/setup-python@v1
  27. with:
  28. python-version: ${{ matrix.python-version }}
  29. - name: Install dependencies
  30. run: |
  31. pip install --upgrade pip pipenv
  32. pipenv sync -d
  33. - name: Unit tests
  34. env:
  35. COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  36. run: |
  37. make test
  38. COVERALLS_REPO_TOKEN=$COVERALLS_TOKEN pipenv run coveralls