Skip to content

Commit

Permalink
🔧 MAINTAIN: Resolve CI Errors (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing authored Aug 23, 2024
1 parent b33da85 commit adcebd6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 27 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,48 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.8
- uses: pre-commit/action@v2.0.0
python-version: 3.11
- uses: pre-commit/action@v3.0.0

tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.11]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Installation (deps and package)
# we install with flit --pth-file,
# so that coverage will be recorded for the module
run: |
pip install flit
pip install flit~=3.0
flit install --deps=production --extras=test --pth-file
- name: Run pytest
run: |
pytest --cov=mdformat_myst --cov-report=xml --cov-report=term-missing
- name: Upload to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
uses: codecov/codecov-action@v1
with:
name: pytests
flags: pytests
file: ./coverage.xml
fail_ci_if_error: true
# FYI: Requires token to continue usage
# - name: Upload to Codecov
# if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
# uses: codecov/codecov-action@v1
# with:
# name: pytests
# flags: pytests
# file: ./coverage.xml
# fail_ci_if_error: true

pre-commit-hook:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -81,9 +82,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: install flit
Expand Down
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 38b88246ccc552bffaaf54259d064beeee434539 # frozen: v4.0.1
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-toml
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 58ace0d0dc6b2439b737a5ea353f836f6a2bad13 # frozen: v1.8.0
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- repo: https://github.com/timothycrosley/isort
rev: a6222a8a125ec719724e628a5d3d0d5c60923281 # frozen: 5.8.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: cf75673e1a2c993025a2113ce194d5c65f311c85 # frozen: 21.5b2
rev: 24.8.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: dcd740bc0ebaf2b3d43e59a0060d157c97de13f3 # frozen: 3.9.2
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/myint/docformatter
rev: 67919ee01837761f2d954d7fbb08c12cdd38ec5a # frozen: v1.4
rev: v1.7.5
hooks:
- id: docformatter
- repo: https://github.com/executablebooks/mdformat
rev: 767a107bac7c4503d9960bfd73f999c9950b69bf # frozen: 0.7.6
rev: 0.7.17
hooks:
- id: mdformat
files: 'README.md'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
[tool.flit.metadata]
module = "mdformat_myst"
author = "Taneli Hukkinen"
maintainer = "Executable Book Project"
maintainer = "Executable Book Project"
maintainer-email = "executablebooks@gmail.com"
description-file = "README.md"
home-page = "https://github.com/hukkinj1/mdformat-myst"
Expand Down

0 comments on commit adcebd6

Please sign in to comment.