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
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Continuous Integration

on: [push, pull_request]

env:
COVERALLS_REPO_TOKEN: ${{ secrets.VCS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.VCS_TOKEN }}

ENVIRONMENT: test
VERBOSE: true
TERM: xterm

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Show ref
run: |
echo "Checking out $GITHUB_REF..."
- uses: actions/setup-python@v2
name: Set up Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade PIP and packages
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install dependencies
run: |
# pip install -r requirements-dev.txt
# python setup.py develop
pip install -e .
- name: Run Tests
run: |
pip install -r ./requirements-test.txt
python -m tox -e py$(echo "${{ matrix.python-version }}" | tr -d '.') --parallel all
- name: Run Coverage
run: |
coveralls --service github
8 changes: 8 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pytest
pytest-cov
pytest-xdist
pytest-sugar
pytest-clarity; python_version >= '3.6'
tox
coveralls
pluggy<1,>=0.12.0
24 changes: 24 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[tox]
envlist =
py27
py34
py35
py36
py37
py38
py39
py310
pypy

skip_missing_interpreters =
true

[testenv]
passenv = *
deps =
-r requirements-test.txt
setenv =
PYTEST_ADDOPTS = "--color=yes"
commands =
pytest -s {toxinidir}/tests \
--cov {envsitepackagesdir}/sirad