Skip to content

Commit

Permalink
chore: development tweaks (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Aug 21, 2022
1 parent 08bef09 commit f62ff90
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ jobs:
python-version: ["pypy-3.7", "3.7", "3.8", "3.9", "3.10"]
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
check-latest: true
- name: Install dependencies
run: python -m pip install tox
- name: Run tests
Expand All @@ -23,11 +24,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.x"
check-latest: true
- name: Install dependencies
run: python -m pip install tox
- name: Run linting
Expand All @@ -39,11 +41,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.x"
check-latest: true
- name: Install dependencies
run: python -m pip install tox
- name: Test packaging
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.x"
check-latest: true
- name: Install build dependencies
run: pip install -U setuptools wheel build
- name: Build
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ htmlcov/
*.eggs
*.py[co]
.pytest_cache/
.python-version

.idea/
.vscode/
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include LICENSE README.rst CHANGES.rst
include tox.ini .coveragerc pytest.ini
include tox.ini
include readme_renderer/py.typed

recursive-include tests *.html
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ build-backend = "setuptools.build_meta"
[tool.check-manifest]
ignore = [".gitpod.yml"]

[tool.coverage.run]
branch = true

[tool.mypy]
strict = true
warn_unused_configs = true
Expand Down
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ isolated_build = True
[testenv]
deps =
pytest
pytest-cov
commands =
pytest --strict-markers {posargs}
pytest --strict-markers --cov {posargs}
extras = md

[testenv:mypy]
Expand Down

0 comments on commit f62ff90

Please sign in to comment.