Skip to content

Commit

Permalink
feat: moved to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 1, 2021
1 parent f8a4d44 commit 1c3e308
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy Workflow
on:
push:
tags:
- "*"
jobs:
build:
name: Build
strategy:
matrix:
python-version: [2.7]
runs-on: ubuntu-latest
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- run: python --version
- run: pip install -r requirements.txt
- run: python setup.py test
- run: pip install twine wheel
- run: python setup.py sdist bdist_wheel
- run: python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Main Workflow
on: [push]
jobs:
build:
name: Build
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, rc]
runs-on: ubuntu-latest
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- run: python --version
- run: pip install -r requirements.txt
- run: python setup.py test
9 changes: 0 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,3 @@ install:
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install coveralls; fi
script: if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage run --source=ripe_id setup.py test; else python setup.py test; fi
after_success: if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coveralls; fi
deploy:
provider: pypi
user: platforme
password:
secure: U9R9qyqS1cJTAec/BWqx2P7nWG4c8Vv4rdhikBgk/5Q05pOu1XQGIQTeSivxAR4ZIY8wGXitISUyJf2CAwuhN8hR7X0UHOaEq0JpPQxPuhd95tf9+BbwCNxKxkt5Z6fpV74HgmInJWiNK85doenju0BT9tscnlNdKY9HE8XT7TS8TtOqkwQfRF0nSWH1/m9xkQ2kxWzdVcbYAMY3W+GkLf0z2TFFnp0mcarnIrtzfM/UOuuQLUFPVqZv26tlBb2lxZdYCjpTKs9Xyv70nAsjhmD1sL7u7Sg23LTuOu39ZblpdHgUjic0wzBARXtK4tKccCRmOxW2r00JS5baGUXpthWXD0Z9Vs/mBMzwNiS/jBcj8cC/R1fMs6XQAL4UgLcZcVqDZ1hjVWmh51eHZZ2tBSPL3/Vp7cWcF9CCpf28r7vVfrDF1phBtjiGv+7G3Den9yMeyg3QQ0WM1aGiLnLF09EMhBDLEq2E8bvhF32MZ2MK7hPpVPbo/cQB0YPmSbwNsR3BJLppaVk4kxGLGllQDaqzFkV0ivg0ErUnBThx3jcX3GLCiPKCdN0N2wnOdpCMKfuap33mg1yHbVwcsyfPC7EyqFIWbRg6ux8xLIyotVfpIlVvwHg2B3joWxEYgLONl+OdYsDSWdMYkR94vRBEQD4NeQyR/EfL/FIdYHtaQ34=
distributions: sdist bdist_wheel
on:
tags: true
python: "2.7"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RIPE ID API is currently licensed under the [Apache License, Version 2.0](http:/
## Build Automation

[![Build Status](https://app.travis-ci.com/ripe-tech/ripe-id-api.svg?branch=master)](https://travis-ci.com/github/ripe-tech/ripe-id-api)
[![Build Status GitHub](https://github.com/ripe-tech/ripe-id-api/workflows/Main%20Workflow/badge.svg)](https://github.com/ripe-tech/ripe-id-api/actions)
[![Coverage Status](https://coveralls.io/repos/ripe-tech/ripe-id-api/badge.svg?branch=master)](https://coveralls.io/r/ripe-tech/ripe-id-api?branch=master)
[![PyPi Status](https://img.shields.io/pypi/v/ripe-id-api.svg)](https://pypi.python.org/pypi/ripe-id-api)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/)

0 comments on commit 1c3e308

Please sign in to comment.