diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5664d10..73ee0a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v2 @@ -63,51 +63,54 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Validate links in Markdown files uses: JustinBeckwith/linkinator-action@v1 with: retry: true + - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: "3.9" + - name: Set Poetry cache uses: actions/cache@v2 id: poetry-cache with: path: ~/.cache/pypoetry/virtualenvs key: poetry-${{ hashFiles('**/poetry.lock') }} - - name: Upgrade Pip - run: python -m pip install --upgrade pip + - name: Install Poetry run: python -m pip install poetry + - name: Install dependencies - run: | - poetry run pip install --upgrade pip - poetry install - - name: Run linters - run: poetry run invoke lint + run: poetry install --no-interaction + - name: Run linters + run: poetry run invoke lint --diff deploy: name: Deploy needs: [test, lint] runs-on: ubuntu-latest - if: ${{ github.ref=='refs/heads/main' && github.event_name!='pull_request' }} + if: github.ref=='refs/heads/main' && github.event_name!='pull_request' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: "3.9" + - name: Check release id: check_release run: | python -m pip install --upgrade pip - python -m pip install poetry githubrelease httpx==0.16.1 autopub - echo "##[set-output name=release;]$(autopub check)" + python -m pip install poetry githubrelease httpx==0.18.2 autopub + echo "release=$(autopub check)" >> $GITHUB_OUTPUT - name: Publish if: ${{ steps.check_release.outputs.release=='' }} env: diff --git a/README.md b/README.md index 3175968..985cb82 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Pandoc Reader: A Plugin for Pelican =================================== -[![Build Status](https://img.shields.io/github/workflow/status/pelican-plugins/pandoc-reader/build)](https://github.com/pelican-plugins/pandoc-reader/actions) +[![Build Status](https://img.shields.io/github/actions/workflow/status/pelican-plugins/pandoc-reader/main.yml?branch=main)](https://github.com/pelican-plugins/pandoc-reader/actions) [![PyPI Version](https://img.shields.io/pypi/v/pelican-pandoc-reader)](https://pypi.org/project/pelican-pandoc-reader/) ![License](https://img.shields.io/pypi/l/pelican-pandoc-reader?color=blue) diff --git a/pyproject.toml b/pyproject.toml index b50d25c..2b06aa5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ classifiers = [ "Issue Tracker" = "https://github.com/pelican-plugins/pandoc-reader/issues" [tool.poetry.dependencies] -python = ">=3.6.2,<4.0" +python = ">=3.8.1,<4.0" pelican = ">=4.5" markdown = {version = "<=3.3.4", optional = true} markdown-word-count = "^0.0.1" @@ -37,11 +37,11 @@ beautifulsoup4 = "^4.9.3" "ruamel.yaml" = "^0.17.21" [tool.poetry.dev-dependencies] -black = {version = "*", allow-prereleases = true} +black = "^23" flake8 = "^4.0.1" flake8-black = "^0.2.0" -invoke = "^1.3" -isort = "^5.4" +invoke = "^2.0" +isort = "^5.12.0" livereload = "^2.6" markdown = "<=3.3.4" pytest = "^6.0"