Skip to content

Bump pypa/gh-action-pypi-publish in /.github/workflows #23

Bump pypa/gh-action-pypi-publish in /.github/workflows

Bump pypa/gh-action-pypi-publish in /.github/workflows #23

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/ .