Skip to content

Commit 0ddb16d

Browse files
committed
Replace tox with GitHub actions matrix
1 parent 5067594 commit 0ddb16d

File tree

10 files changed

+68
-311
lines changed

10 files changed

+68
-311
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip setuptools wheel
25+
pip install coverage
26+
pip install --editable .
27+
- name: Run test
28+
run: python -m unittest discover

.github/workflows/tox.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6
1+
FROM python:3.11
22
RUN useradd --user-group bagit-tester
33
RUN install -d -o bagit-tester /bagit
44
USER bagit-tester

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
prune test-data
22
exclude .*
33
exclude Dockerfile
4-
exclude tox.ini
54
exclude MANIFEST.in
65
exclude test.py
76
exclude bench.py

Pipfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 207 deletions
This file was deleted.

README.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ project as needed or you can install globally with:
1616

1717
pip install bagit
1818

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

2121
Command Line Usage
2222
------------------
@@ -232,15 +232,6 @@ You can quickly run the tests by having setuptools install dependencies:
232232

233233
python setup.py test
234234

235-
Once your code is working, you can use
236-
`Tox <https://tox.readthedocs.io/>`__ to run the tests with every
237-
supported version of Python which you have installed on the local
238-
system:
239-
240-
::
241-
242-
tox
243-
244235
If you have Docker installed, you can run the tests under Linux inside a
245236
container:
246237

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
description = "Create and validate BagIt packages"
1818

1919

20-
tests_require = ["mock", "coverage"]
21-
22-
2320
def get_message_catalogs():
2421
message_catalogs = []
2522

@@ -56,9 +53,7 @@ def get_message_catalogs():
5653
data_files=get_message_catalogs(),
5754
description=description,
5855
platforms=["POSIX"],
59-
test_suite="test",
6056
setup_requires=["setuptools_scm"],
61-
tests_require=tests_require,
6257
classifiers=[
6358
"License :: Public Domain",
6459
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)