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

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
key: tox-${{ hashFiles('ci/requirements/dev.yml') }}-${{ hashFiles('tox.ini') }}
path: |
.tox

- name: Run tox
run: pipx 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
19 changes: 19 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[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}