Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Aug 11, 2023
1 parent 7e411da commit c977349
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 82 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches:
- main
tags:
- '*'
pull_request:

jobs:
initial_checks:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: false
envs: |
- linux: codestyle
tests:
needs: initial_checks
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: codecov
envs: |
- linux: py38-test
- linux: py39-test
- linux: py310-test-dev
- linux: py311-test-dev
- macos: py38-test
- macos: py39-test
- macos: py310-test-dev
- macos: py311-test-dev
- windows: py38-test
- windows: py39-test
- windows: py310-test-dev
- windows: py311-test-dev
publish:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
test_extras: test
test_command: pytest --pyargs glue_medical
secrets:
pypi_token: ${{ secrets.pypi_token }}
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion glue_medical/dicom_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def dicom_label(filename):
return label



def is_dicom(source):
"""
Determine if the source is either a DICOM file or a directory that
Expand Down
3 changes: 0 additions & 3 deletions glue_medical/tests/test_dicom_factory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import os
import glob
import shutil
import zipfile

from ..dicom_factory import is_dicom, dicom_reader

Expand Down
20 changes: 16 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
[tox]
envlist = py{27,36,37}-test
envlist = py{38,39,310,311}-test{-devdeps}
requires = pip >= 18.0
setuptools >= 30.3.0

[testenv]
passenv = DISPLAY HOME
changedir = {envtmpdir}
passenv =
DISPLAY
HOME
changedir =
test: .tmp/{envname}
deps =
dev: glue-core @ git+https://github.com/glue-viz/glue
extras =
test: test
commands =
test: pytest --pyargs glue_medical --cov glue_medical -v
test: pip freeze
test: pytest --pyargs glue_medical --cov glue_medical {posargs}

[testenv:codestyle]
deps = flake8
skip_install = true
commands =
flake8 --max-line-length=100 glue_medical

0 comments on commit c977349

Please sign in to comment.