Skip to content

Commit

Permalink
Merge branch 'master' into fix-deprecationwarning
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin authored Dec 1, 2024
2 parents db15964 + 038e473 commit 45dc990
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.11]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest, windows-latest]

steps:
Expand All @@ -48,10 +48,10 @@ jobs:
# FYI: Requires token to continue usage
# - name: Upload to Codecov
# if: matrix.python-version == 3.7
# if: matrix.python-version == 3.9
# uses: codecov/codecov-action@v1
# with:
# name: pytests-py3.7
# name: pytests-py3.9
# flags: pytests
# file: ./coverage.xml
# fail_ci_if_error: true
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: '3.9'

- name: Installation (deps and package)
run: |
Expand All @@ -83,10 +83,10 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.9'
- name: install flit
run: |
pip install flit~=3.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tox
To run the code formatting and style checks:

```bash
tox -e py37-pre-commit
tox -e py311-pre-commit
```

or directly
Expand All @@ -58,7 +58,7 @@ pre-commit run --all
To run the pre-commit hook test:

```bash
tox -e py37-hook
tox -e py311-hook
```

## Publish to PyPi
Expand All @@ -73,7 +73,7 @@ or trigger the GitHub Action job, by creating a release with a tag equal to the

Note, this requires generating an API key on PyPi and adding it to the repository `Settings/Secrets`, under the name `PYPI_KEY`.

[ci-badge]: https://github.com/executablebooks/mdformat-tables/workflows/CI/badge.svg?branch=master
[ci-badge]: https://github.com/executablebooks/mdformat-tables/actions/workflows/tests.yml/badge.svg?branch=master
[ci-link]: https://github.com/executablebooks/mdformat/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush
[cov-badge]: https://codecov.io/gh/executablebooks/mdformat-tables/branch/master/graph/badge.svg
[cov-link]: https://codecov.io/gh/executablebooks/mdformat-tables
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
]
keywords = "mdformat,markdown,markdown-it"

requires-python=">=3.7.0"
requires-python=">=3.9"
requires=["mdformat>=0.7.19,<0.8.0", "wcwidth>=0.2.13"]

[tool.flit.metadata.requires-extra]
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[tox]
envlist = py{37,311},py{37,311}-hook
envlist = py{39,310,311,312,313}
isolated_build = True

[testenv:py{37,311}]
[testenv:py{39,310,311,312,313}]
extras = test
commands = pytest --cov={envsitepackagesdir}/mdformat_tables {posargs} --ff --nf -vv
commands = pytest --cov={envsitepackagesdir}/mdformat_tables {posargs}

[testenv:pre-commit]
[testenv:py{39,310,311,312,313}-pre-commit]
deps = pre-commit
commands = pre-commit run {posargs}

[testenv:py{37,311}-hook]
[testenv:py{39,310,311,312,313}-hook]
deps = pre-commit
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}

Expand Down

0 comments on commit 45dc990

Please sign in to comment.