Skip to content

Commit

Permalink
Add GitHub Actions CI workflow
Browse files Browse the repository at this point in the history
- Update requests package version
- Add tox to requirements.txt
- Remove Travis CI config file and status badge in README
  • Loading branch information
russellkan committed Mar 20, 2024
1 parent 3efa162 commit 538db9d
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 15 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches:
- master
pull_request:

env:
PYTHON_VERSION: '3.7'

jobs:
run-tox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tox
run: tox
1 change: 1 addition & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- v*

env:
PYTHON_VERSION: '3.7'

Expand Down
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Travis CI build status](https://img.shields.io/travis/innolitics/dicom-standard?label=Travis%20CI&logo=travis)](https://travis-ci.org/innolitics/dicom-standard)
[![CI workflow status](https://github.com/innolitics/dicom-standard/workflows/CI/badge.svg)](https://github.com/innolitics/dicom-standard/actions?query=workflow%3ACI)
[![update-standard workflow status](https://github.com/innolitics/dicom-standard/workflows/update-standard/badge.svg)](https://github.com/innolitics/dicom-standard/actions?query=workflow%3Aupdate-standard)
[![PyPI version](https://img.shields.io/pypi/v/dicom-standard?label=PyPI&color=blue&logo=pypi)](https://pypi.org/project/dicom-standard/)

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ commands = flake8
[testenv:mypy]
deps = mypy
commands =
pip install types-requests
mypy -p dicom_standard
mypy -p tests
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
beautifulsoup4==4.5.1
py==1.10.0
pytest==3.0.5
requests==2.23.0
requests==2.31.0
tox==4.8.0

0 comments on commit 538db9d

Please sign in to comment.