Skip to content

Commit

Permalink
Merge pull request #544 from radical-cybertools/feature/release_action
Browse files Browse the repository at this point in the history
Create python-publish.yml
  • Loading branch information
Ioannis Paraskevakos committed Feb 3, 2021
2 parents da2bfed + 1b192cd commit 3ccf8f2
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application
name: Build

on:
push:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
@@ -0,0 +1,31 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
8 changes: 1 addition & 7 deletions README.md
Expand Up @@ -3,12 +3,6 @@
The documentation for Ensemble Toolkit is available at
[http://radicalentk.readthedocs.io/en/latest/](http://radicalentk.readthedocs.io/en/latest/)

![Github Actions Build](https://github.com/radical-cybertools/radical.entk/workflows/Python%20application/badge.svg)
<!--[![Build Status](https://travis-ci.com/radical-cybertools/radical.entk.svg?branch=devel)](https://travis-ci.com/radical-cybertools/radical.entk)-->
![Github Actions Build](https://github.com/radical-cybertools/radical.entk/workflows/Build/badge.svg)
[![codecov](https://codecov.io/gh/radical-cybertools/radical.entk/branch/devel/graph/badge.svg?token=dHn74ChzmX)](https://codecov.io/gh/radical-cybertools/radical.entk)
[![conda](https://anaconda.org/conda-forge/radical.entk/badges/version.svg)](https://anaconda.org/conda-forge/radical.entk)



<!-- coverage run --source $VENV/lib/python3.7/site-packages/radical/entk -m pytest -vvv $LOC/radical.entk/tests -->
<!-- coverage html -->
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
1.5.8
1.5.12
24 changes: 18 additions & 6 deletions docs/index.rst
Expand Up @@ -34,15 +34,27 @@ More details about the science enabled by EnTK can be found in the following pub
* For users: https://groups.google.com/d/forum/ensemble-toolkit-users
* For developers: https://groups.google.com/d/forum/ensemble-toolkit-dev

Build status: |travis|
**Badges**

.. |travis| image:: https://travis-ci.com/radical-cybertools/radical.entk.svg?branch=master
:target: https://travis-ci.com/radical-cybertools/radical.entk
.. image:: https://github.com/radical-cybertools/radical.entk/workflows/Build/badge.svg
:target: https://github.com/radical-cybertools/radical.entk/workflows/Build
:alt: Build Status

Test coverage: |codecov|
.. image:: https://codecov.io/gh/radical-cybertools/radical.entk/branch/devel/graph/badge.svg?token=dHn74ChzmX
:target: https://codecov.io/gh/radical-cybertools/radical.entk
:alt: Test Coverage

.. image:: https://badge.fury.io/py/radical.entk.svg
:target: https://badge.fury.io/py/radical.entk
:alt: PyPI version

.. image:: https://anaconda.org/conda-forge/radical.entk/badges/version.svg
:target: https://anaconda.org/conda-forge/radical.entk
:alt: Conda Version

.. image:: https://img.shields.io/pypi/pyversions/radical.entk.svg
:alt: Python version

.. |codecov| image:: https://codecov.io/gh/radical-cybertools/radical.entk/branch/master/graph/badge.svg
:target: https://codecov.io/gh/radical-cybertools/radical.entk

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit 3ccf8f2

Please sign in to comment.