Bump pypa/gh-action-pypi-publish in /.github/workflows #23
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: | |
| test: | |
| name: Run Tests and Code Coverage π | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.6, 3.7, 3.8, 3.9] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} π | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies βοΈ | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . | |
| pip install pytest pytest-cov build | |
| - name: Test with pytest β | |
| run: | | |
| pytest --cov=polygongrid | |
| - name: Coveralls π | |
| if: matrix.python-version == 3.9 | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| GITHUB_TOKEN: $COVERALLS_REPO_TOKEN | |
| run: | | |
| pip install coveralls | |
| coveralls | |
| - name: Try building a binary wheel and a source tarball π§ | |
| run: | | |
| python -m build --sdist --wheel --outdir dist/ . |