name: Unit tests on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Set up Python uses: actions/setup-python@v1 with: python-version: 3.8 - name: Install dependencies run: | pip install --upgrade pip pipenv pipenv sync -d - name: Unit tests env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: | pipenv run python -m coverage run -m unittest test pipenv run codecov --token=$CODECOV_TOKEN