Skip to content

Commit 8444ae8

Browse files
authored
Merge pull request #22 from tacaswell/harden_gha
CI: Harden GHA configuration
2 parents 465a7cb + 3260bf8 commit 8444ae8

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of your workflow files
6+
schedule:
7+
interval: "weekly" # Options: daily, weekly, monthly

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v3
28+
with:
29+
persist-credentials: false
2830

2931
- name: Initialize CodeQL
3032
uses: github/codeql-action/init@v2

.github/workflows/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Docs
2+
permissions:
3+
contents: read
24

35
on: [push, pull_request]
46

@@ -11,6 +13,8 @@ jobs:
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@v2
16+
with:
17+
persist-credentials: false
1418
- name: Install Python dependencies
1519
run: pip install -r requirements-doc.txt
1620

@@ -25,7 +29,7 @@ jobs:
2529
2630
- name: Publish
2731
if: ${{ env.IS_RELEASE == 'true' }}
28-
uses: peaceiris/actions-gh-pages@v3
32+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
2933
with:
3034
github_token: ${{ secrets.GITHUB_TOKEN }}
3135
publish_dir: ./docs/build/html

.github/workflows/testing.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Unit Tests
2+
permissions:
3+
contents: read
24

35
on:
46
push:
@@ -12,13 +14,14 @@ jobs:
1214
runs-on: ubuntu-latest
1315
strategy:
1416
matrix:
15-
python-version: ['3.9', '3.10', '3.11', '3.12']
17+
python-version: ['3.11', '3.12', '3.11']
1618
fail-fast: false
1719
steps:
1820

1921
- uses: actions/checkout@v2
2022
with:
2123
fetch-depth: 0
24+
persist-credentials: false
2225

2326
- name: Set up Python ${{ matrix.python-version }}
2427
uses: actions/setup-python@v2
@@ -41,4 +44,4 @@ jobs:
4144
coverage report
4245
4346
- name: Upload code coverage
44-
uses: codecov/codecov-action@v1
47+
uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 # v1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# NOTE: This file must remain Python 2 compatible for the foreseeable future,
88
# to ensure that we error out properly for people with outdated setuptools
99
# and/or pip.
10-
min_version = (3, 7)
10+
min_version = (3, 11)
1111
if sys.version_info < min_version:
1212
error = """
1313
mpl-gui does not support Python {0}.{1}.

0 commit comments

Comments
 (0)