Skip to content

Commit

Permalink
Bring in line with other package CIs (#167)
Browse files Browse the repository at this point in the history
* Bring in line with other package CIs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alessandro Felder <[email protected]>
  • Loading branch information
3 people authored Feb 6, 2024
1 parent 499b136 commit 331dc11
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 32 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,27 @@ name: tests

on:
push:
branches: [ main ]
branches:
- "main"
tags:
- '*'
- 'v*'
pull_request:
branches: [ '*' ]
workflow_dispatch:

jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v1

manifest:
name: Check Manifest
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/check_manifest@v2

test:
needs: [linting]
needs: [linting, manifest]
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down
11 changes: 11 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
include LICENSE
include README.md

exclude .pre-commit-config.yaml
exclude codecov.yml

include .napari/config.yml

graft brainglobe_segmentation

prune tests
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,36 @@ line-length = 79
exclude = ["__init__.py", "build", ".eggs"]
select = ["I", "E", "F"]
fix = true

[tool.tox]
legacy_tox_ini = """
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = py{38,39,310}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[testenv]
passenv =
CI
GITHUB_ACTIONS
DISPLAY
XAUTHORITY
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
deps =
pytest # https://docs.pytest.org/en/latest/contents.html
pytest-cov # https://pytest-cov.readthedocs.io/en/latest/
pytest-qt # https://pytest-qt.readthedocs.io/en/latest/
coverage
napari
pyqt5
magicgui
commands = pytest -v --color=yes --cov=brainglobe_segmentation --cov-report=xml
"""
28 changes: 0 additions & 28 deletions tox.ini

This file was deleted.

0 comments on commit 331dc11

Please sign in to comment.