Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test tephi

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
key: tox
path: |
.tox

- name: Install tox
run: pip3 install --user tox

- name: Run tox
run: tox
8 changes: 8 additions & 0 deletions ci/requirements/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: tephi-dev
channels:
- conda-forge
dependencies:
- matplotlib
- numpy
- scipy
- scooby
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 79
target-version = ['py36', 'py37', 'py38']
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
exclude = '''

Expand Down
25 changes: 25 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[tox]
requires =
tox-conda
tox-run-command
minversion = 3.15
envlist=py37,py38,py39,py310

[testenv]
description = invoke pytest to run automated tests
deps =
pytest
pytest-cov
filelock
requests
imagehash
conda_env = ci/requirements/dev.yml
commands =
pytest --cov tephi --cov-report term-missing {posargs}

[testenv:lint]
skip_install = true
deps =
black
commands = \
black --config=./pyproject.toml .