Skip to content

Commit

Permalink
Fix dependency ranges and verify
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed Sep 9, 2022
1 parent 9c5ae6f commit d4c1dba
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -32,3 +32,22 @@ jobs:
run: make test
- name: Lint
run: make lint

deps:
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip pessimist
python -m pip install .
- name: Validate
run: |
make deps
3 changes: 3 additions & 0 deletions makefile
Expand Up @@ -30,6 +30,9 @@ test:
python -m coverage report
python -m mypy --install-types --non-interactive -p $(SRCS)

deps:
python -m pessimist --requirements= -c 'python -m sphinx_mdinclude.tests' .

html: .venv README.md docs/*.md docs/conf.py
source .venv/bin/activate && sphinx-build -b html docs html

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Expand Up @@ -16,7 +16,8 @@ readme = "README.md"
requires-python = ">=3.6"
dependencies = [
"mistune >= 2.0",
"docutils >=0.15,<1.0",
"docutils >=0.16,<1.0",
"pygments >= 2.8",
]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Expand Up @@ -5,6 +5,7 @@ coverage==6.4.4; python_version >= "3.7"
flake8==5.0.4
flit==3.7.1
mypy==0.971
pessimist==0.9.3
sphinx==4.3.1; python_version < "3.8"
sphinx==5.1.1; python_version >= "3.8"
ufmt==2.0.0
Expand Down

0 comments on commit d4c1dba

Please sign in to comment.