Bump pypa/gh-action-pypi-publish in /.github/workflows #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| jobs: | |
| update-requirements: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - uses: dschep/install-pipenv-action@v1 | |
| - name: Update requirements | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pipenv-to-requirements | |
| pipenv lock | |
| pipenv_to_requirements | |
| git add requirements*.txt | |
| if [[ -n $(git status -s requirements*.txt) ]] | |
| then | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "GitHub Action" | |
| git commit -m 'Automatically generated requirements' requirements*.txt | |
| git push | |
| fi | |
| test: | |
| needs: update-requirements | |
| name: Run TOX tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ 3.7, 3.8, 3.9, "3.10" ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run TOX | |
| env: | |
| # Prevents conflicts during concurrent runs. Further | |
| # configuration takes place in the tox.ini file. | |
| COVERAGE_FILE: .coverage.${{matrix.python-version}} | |
| run: | | |
| echo "Generated by build process" > tests/data/SKIP_EXTERNAL_URLS | |
| pip install tox | |
| tox -e py | |
| - uses: codecov/codecov-action@v3 | |
| with: | |
| # files: ./coverage1.xml,./coverage2.xml # optional | |
| # flags: unittests # optional | |
| # name: codecov-umbrella # optional | |
| # fail_ci_if_error: true # optional (default = false) | |
| verbose: true # optional (default = false) |