Skip to content

Merge pull request #26 from urosjarc/master #8

Merge pull request #26 from urosjarc/master

Merge pull request #26 from urosjarc/master #8

Workflow file for this run

name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
env:
USING_COVERAGE: "3.9"
steps:
- name: Checkout sources
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: |
make deps
- name: Run tests
run: |
make test
- name: 📦 Build
if: startsWith(github.ref, 'refs/tags')
run: >-
make build
- name: 🚀 Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}