-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
77 additions
and
62 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,38 @@ | ||
name: deploy | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'README.md' | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
inputs: | ||
test: | ||
description: "Testing pipeline" | ||
required: true | ||
default: "test.yml" | ||
# name: deploy | ||
# on: | ||
# push: | ||
# paths-ignore: | ||
# - 'README.md' | ||
# tags: | ||
# - '*' | ||
# workflow_dispatch: | ||
# inputs: | ||
# test: | ||
# description: "Testing pipeline" | ||
# required: true | ||
# default: "test.yml" | ||
|
||
|
||
jobs: | ||
build-n-publish: | ||
name: Publish Python distribution | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Lint with flake8 | ||
run: | | ||
pip install flake8 | ||
flake8 . --max-line-length=1000 | ||
- name: Test with pytest | ||
run: | | ||
pip install pytest | ||
pip install pytest-cov | ||
pytest ./tests/tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.testpypi_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_password }} | ||
# jobs: | ||
# build-n-publish: | ||
# name: Publish Python distribution | ||
# runs-on: ubuntu-18.04 | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# - name: Setup Python 3.9 | ||
# uses: actions/setup-python@v1 | ||
# with: | ||
# python-version: 3.9 | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# - name: Lint with flake8 | ||
# run: | | ||
# pip install flake8 | ||
# flake8 . --max-line-length=1000 | ||
# - name: Test with pytest | ||
# run: | | ||
# pip install pytest | ||
# pip install pytest-cov | ||
# pytest ./tests/tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html | ||
|
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