Added workflows for publishing to pypi and testpypi #28
Workflow file for this run
This file contains 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: Testing unify | |
on: push | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install deps | |
uses: knowsuchagency/poetry-install@v1 | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Run black check | |
run: poetry run black --check . | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install deps | |
uses: knowsuchagency/poetry-install@v1 | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Run flake8 check | |
run: poetry run flake8 --count . | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install deps | |
uses: knowsuchagency/poetry-install@v1 | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Run mypy check | |
run: poetry run mypy --install-types --non-interactive . | |
unittests: | |
runs-on: ubuntu-latest | |
environment: unify-testing | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install deps | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install --with dev | |
- name: Run unit tests | |
run: poetry run python -m unittest discover | |
env: | |
UNIFY_KEY: ${{ secrets.UNIFY_KEY }} |