Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Tox
on:
schedule:
- cron: '35 9 * * 0'
push:
pull_request:

jobs:
test:
name: Run tox tests
strategy:
fail-fast: false
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -mpip install --upgrade wheel pytest tox
- name: Get tox target
id: toxtarget
run: |
py=$(echo ${{ matrix.python-version }} | tr -d .)
echo "::set-output name=py::$py"
- name: Run tests
run: tox -e py${{ steps.toxtarget.outputs.py }}
64 changes: 0 additions & 64 deletions .github/workflows/workflow.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OMERO server external configuration plugin

[![Build](https://github.com/manics/omero-cli-externalconfig/workflows/Build/badge.svg)](https://github.com/manics/omero-cli-externalconfig/actions?query=branch%3Amain)
[![Build](https://github.com/ome/omero-cli-externalconfig/workflows/Tox/badge.svg)](https://github.com/ome/omero-cli-externalconfig/actions?query=branch%3Amain)

Configure OMERO using environment variables, YAML, and JSON files.

Expand Down
21 changes: 21 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tox]
envlist = py36, py37, py38
# https://tox.readthedocs.io/en/latest/config.html#conf-requires
# Ensure pip is new enough
requires = pip >= 20.0.0
virtualenv >= 20.0.0

[testenv]
# For environment markers see
# https://www.python.org/dev/peps/pep-0508/#environment-markers
deps =
jinja2
omero-py
https://github.com/ome/zeroc-ice-py-travis-bionic/releases/download/0.0.1/zeroc_ice-3.6.5-cp36-cp36m-linux_x86_64.whl; platform_system=="Linux" and python_version=="3.6"
https://github.com/ome/zeroc-ice-py-travis-bionic/releases/download/0.0.1/zeroc_ice-3.6.5-cp37-cp37m-linux_x86_64.whl; platform_system=="Linux" and python_version=="3.7"
https://github.com/ome/zeroc-ice-py-travis-bionic/releases/download/0.0.1/zeroc_ice-3.6.5-cp38-cp38-linux_x86_64.whl; platform_system=="Linux" and python_version=="3.8"
passenv =
PIP_CACHE_DIR
commands =
python setup.py install
pytest {posargs:-rf -s}