您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

25 行
530 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. make test
  21. COVERALLS_REPO_TOKEN=$COVERALLS_TOKEN pipenv run coveralls