Skip to content

Commit adcebd6

Browse files
authored
🔧 MAINTAIN: Resolve CI Errors (#29)
1 parent b33da85 commit adcebd6

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

‎.github/workflows/tests.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,48 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.8
21-
- uses: pre-commit/action@v2.0.0
20+
python-version: 3.11
21+
- uses: pre-commit/action@v3.0.0
2222

2323
tests:
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
matrix:
27-
python-version: [3.7, 3.8, 3.9]
27+
python-version: [3.7, 3.11]
2828
os: [ubuntu-latest, windows-latest]
2929

3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3232

3333
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v5
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737

3838
- name: Installation (deps and package)
3939
# we install with flit --pth-file,
4040
# so that coverage will be recorded for the module
4141
run: |
42-
pip install flit
42+
pip install flit~=3.0
4343
flit install --deps=production --extras=test --pth-file
4444
4545
- name: Run pytest
4646
run: |
4747
pytest --cov=mdformat_myst --cov-report=xml --cov-report=term-missing
4848
49-
- name: Upload to Codecov
50-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
51-
uses: codecov/codecov-action@v1
52-
with:
53-
name: pytests
54-
flags: pytests
55-
file: ./coverage.xml
56-
fail_ci_if_error: true
49+
# FYI: Requires token to continue usage
50+
# - name: Upload to Codecov
51+
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
52+
# uses: codecov/codecov-action@v1
53+
# with:
54+
# name: pytests
55+
# flags: pytests
56+
# file: ./coverage.xml
57+
# fail_ci_if_error: true
5758

5859
pre-commit-hook:
5960
runs-on: ubuntu-latest
@@ -81,9 +82,9 @@ jobs:
8182
runs-on: ubuntu-latest
8283
steps:
8384
- name: Checkout source
84-
uses: actions/checkout@v2
85+
uses: actions/checkout@v4
8586
- name: Set up Python
86-
uses: actions/setup-python@v1
87+
uses: actions/setup-python@v5
8788
with:
8889
python-version: 3.8
8990
- name: install flit

‎.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: 38b88246ccc552bffaaf54259d064beeee434539 # frozen: v4.0.1
3+
rev: v4.6.0
44
hooks:
55
- id: check-yaml
66
- id: check-toml
77
- repo: https://github.com/pre-commit/pygrep-hooks
8-
rev: 58ace0d0dc6b2439b737a5ea353f836f6a2bad13 # frozen: v1.8.0
8+
rev: v1.10.0
99
hooks:
1010
- id: python-use-type-annotations
1111
- id: python-check-blanket-noqa
1212
- repo: https://github.com/timothycrosley/isort
13-
rev: a6222a8a125ec719724e628a5d3d0d5c60923281 # frozen: 5.8.0
13+
rev: 5.13.2
1414
hooks:
1515
- id: isort
1616
- repo: https://github.com/psf/black
17-
rev: cf75673e1a2c993025a2113ce194d5c65f311c85 # frozen: 21.5b2
17+
rev: 24.8.0
1818
hooks:
1919
- id: black
20-
- repo: https://gitlab.com/pycqa/flake8
21-
rev: dcd740bc0ebaf2b3d43e59a0060d157c97de13f3 # frozen: 3.9.2
20+
- repo: https://github.com/PyCQA/flake8
21+
rev: 7.1.1
2222
hooks:
2323
- id: flake8
2424
additional_dependencies:
2525
- flake8-bugbear
2626
- flake8-builtins
2727
- flake8-comprehensions
2828
- repo: https://github.com/myint/docformatter
29-
rev: 67919ee01837761f2d954d7fbb08c12cdd38ec5a # frozen: v1.4
29+
rev: v1.7.5
3030
hooks:
3131
- id: docformatter
3232
- repo: https://github.com/executablebooks/mdformat
33-
rev: 767a107bac7c4503d9960bfd73f999c9950b69bf # frozen: 0.7.6
33+
rev: 0.7.17
3434
hooks:
3535
- id: mdformat
3636
files: 'README.md'

‎pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
66
[tool.flit.metadata]
77
module = "mdformat_myst"
88
author = "Taneli Hukkinen"
9-
maintainer = "Executable Book Project"
9+
maintainer = "Executable Book Project"
1010
maintainer-email = "executablebooks@gmail.com"
1111
description-file = "README.md"
1212
home-page = "https://github.com/hukkinj1/mdformat-myst"

0 commit comments

Comments
 (0)