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.
 
 
 
 

30 lines
668 B

  1. name: Python application
  2. on: [push]
  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. run: |
  18. pipenv run python -m unittest -v test
  19. - name: Code coverage
  20. run: |
  21. pipenv run python -m coverage run -m unittest test
  22. pipenv run codecov --token=${{ secrets.CODECOV_TOKEN }}
  23. - name: Lint
  24. run: |
  25. pipenv run pylint kosmorro *.py kosmorrolib/*.py