Skip to content

Commit

Permalink
chore(deps): upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianDsg authored and waylan committed Dec 8, 2023
1 parent 5bc28d3 commit 24242b5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ name: deploy
on:
push:
tags:
- '*'
- "*"

jobs:

pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
Expand All @@ -23,7 +22,7 @@ jobs:
python -m build
- name: Publish
if: success()
uses: pypa/gh-action-pypi-publish@v1.1.0
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
63 changes: 32 additions & 31 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,56 @@ name: Tests
on:
pull_request:
branches:
- '**'
- "**"

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, '3.10', 3.11, pypy-3.8, pypy-3.9, pypy-3.10]
python-version:
["3.8", "3.9", "3.10", "3.11", "pypy-3.8", "pypy-3.9", "pypy-3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip coverage markdown
- name: Run tests
run: |
coverage run test_gh_links.py
- name: Generate coverage report
if: success()
run: |
coverage xml
coverage report --show-missing --include=mdx_gh_links.py
- name: Upload Results
if: success()
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: ${{ matrix.os }}/Python ${{ matrix.python-version }}
fail_ci_if_error: false
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip coverage markdown
- name: Run tests
run: |
coverage run test_gh_links.py
- name: Generate coverage report
if: success()
run: |
coverage xml
coverage report --show-missing --include=mdx_gh_links.py
- name: Upload Results
if: success()
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: ${{ matrix.os }}/Python ${{ matrix.python-version }}
fail_ci_if_error: false

flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: TrueBrain/actions-flake8@master
with:
max_line_length: 118

mdlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DavidAnson/markdownlint-cli2-action@v11
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v14
with:
config: '.markdownlint.jsonc'
globs: '**/*.md'
config: ".markdownlint.jsonc"
globs: "**/*.md"

0 comments on commit 24242b5

Please sign in to comment.