Skip to content

Commit

Permalink
Replace tox with GitHub actions matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
acdha committed Oct 15, 2024
1 parent 5067594 commit 0ddb16d
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 311 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

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

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install coverage
pip install --editable .
- name: Run test
run: python -m unittest discover
19 changes: 0 additions & 19 deletions .github/workflows/tox.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6
FROM python:3.11
RUN useradd --user-group bagit-tester
RUN install -d -o bagit-tester /bagit
USER bagit-tester
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
prune test-data
exclude .*
exclude Dockerfile
exclude tox.ini
exclude MANIFEST.in
exclude test.py
exclude bench.py
Expand Down
12 changes: 0 additions & 12 deletions Pipfile

This file was deleted.

207 changes: 0 additions & 207 deletions Pipfile.lock

This file was deleted.

11 changes: 1 addition & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ project as needed or you can install globally with:

pip install bagit

Python v2.7+ is required.
A supported version of Python 3 is required.

Command Line Usage
------------------
Expand Down Expand Up @@ -232,15 +232,6 @@ You can quickly run the tests by having setuptools install dependencies:

python setup.py test

Once your code is working, you can use
`Tox <https://tox.readthedocs.io/>`__ to run the tests with every
supported version of Python which you have installed on the local
system:

::

tox

If you have Docker installed, you can run the tests under Linux inside a
container:

Expand Down
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
description = "Create and validate BagIt packages"


tests_require = ["mock", "coverage"]


def get_message_catalogs():
message_catalogs = []

Expand Down Expand Up @@ -56,9 +53,7 @@ def get_message_catalogs():
data_files=get_message_catalogs(),
description=description,
platforms=["POSIX"],
test_suite="test",
setup_requires=["setuptools_scm"],
tests_require=tests_require,
classifiers=[
"License :: Public Domain",
"Intended Audience :: Developers",
Expand Down
Loading

0 comments on commit 0ddb16d

Please sign in to comment.