Skip to content

Commit

Permalink
Replace Travis CI by GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Nov 4, 2020
1 parent f7ab159 commit e611a87
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 25 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/omero_plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Install and test and OMERO plugin e.g. a Web app, a CLI plugin or a library
#
# This workflow will install omero-test-infra, start an OMERO environment
# including database, server and web deployment, configure the OMERO plugin
# and run integration tests.
#
# 1. Set up the stage variable depending on the plugin. Supported stages
# are: app, cli, scripts, lib, srv

name: OMERO
on:
push:
pull_request:

jobs:
test:
name: Run integration tests against OMERO
runs-on: ubuntu-latest
env:
STAGE: app
steps:
- uses: actions/checkout@v2
- name: Checkout omero-test-infra
uses: actions/checkout@master
with:
repository: ome/omero-test-infra
path: .omero
ref: ${{ secrets.OMERO_TEST_INFRA_REF }}
- name: Build and run OMERO tests
run: .omero/docker $STAGE
20 changes: 20 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: PyPI
on: push

jobs:
build-n-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Build a binary wheel and a source tarball
run: |
python -mpip install wheel
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.3.0
with:
password: ${{ secrets.PYPI_PASSWORD }}
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.. image:: https://travis-ci.org/ome/omero-signup.svg?branch=master
:target: https://travis-ci.org/ome/omero-signup
.. image:: https://github.com/ome/omero-signup/workflows/OMERO/badge.svg
:target: https://github.com/ome/omero-signup/actions

.. image:: https://badge.fury.io/py/omero-signup.svg
:target: https://badge.fury.io/py/omero-signup

OMERO.signup
============
Expand Down

0 comments on commit e611a87

Please sign in to comment.