Skip to content

Commit d21861c

Browse files
committed
Modernize packaging, testing, etc.
1 parent 0a78cc1 commit d21861c

File tree

10 files changed

+529
-427
lines changed

10 files changed

+529
-427
lines changed

.github/workflows/ci.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: CI
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
tests:
14+
name: Test suite
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version:
19+
- "3.8"
20+
- "3.9"
21+
- "3.10"
22+
- "3.11"
23+
- "3.12"
24+
lxml-range:
25+
- "lxml>=4.0.0,<5.0"
26+
- "lxml>=5.0.0"
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up Python ${{ matrix.python-version }} for ${{ matrix.lxml-range }}
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
python -m pip install --upgrade wheel
37+
python -m pip install --upgrade -r requirements.txt
38+
python -m pip install --upgrade "${{ matrix.lxml-range }}"
39+
python -m pip install -e .
40+
- name: Lint
41+
run: |
42+
isort -c xmlunittest.py
43+
flake8 xmlunittest.py
44+
- name: Test
45+
run: pytest test.py

.travis.yml

-17
This file was deleted.

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include README.md
1+
include README.rst
22
include LICENSE
33
include doc/Makefile
44
include doc/index.rst

0 commit comments

Comments
 (0)