Skip to content

Commit

Permalink
MAINT: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 29, 2023
1 parent 722d6f5 commit c0e7878
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
30 changes: 15 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,30 @@ jobs:
runs-on: ubuntu-latest

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

tests:

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: windows-latest
python-version: 3.8
python-version: 3.9

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -51,27 +51,27 @@ jobs:
run: |
pytest --cov=sphinx_external_toc --cov-report=xml --cov-report=term-missing
- name: Upload to Codecov
if: matrix.python-version == 3.8
if: matrix.python-version == 3.9
uses: codecov/codecov-action@v1
with:
name: pytests-py3.8
name: pytests-py3.9
flags: pytests
file: ./coverage.xml
fail_ci_if_error: true

publish:

name: Publish to PyPi
name: Publish to PyPI
needs: [pre-commit, tests]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.10
- name: install flit
run: |
pip install flit~=3.4
Expand Down

0 comments on commit c0e7878

Please sign in to comment.