Skip to content

Commit

Permalink
Update Actions and add Dependabot
Browse files Browse the repository at this point in the history
* Node12 is EOL and Github is turning it off any day now
* Added dependabot to manage Github Actions
  * Keeping the Python automagic disabled (commented out) in the
    meantime though
  • Loading branch information
rblaine95 committed Aug 22, 2023
1 parent b5bf3fd commit 9fd0dd6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 14 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
# # Maintain dependencies for Python
# - package-ecosystem: pip
# directory: /
# schedule:
# interval: weekly
2 changes: 1 addition & 1 deletion .github/workflows/create-release-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v1
uses: mikepenz/release-changelog-builder-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Python 3
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
Expand All @@ -27,19 +27,19 @@ jobs:
name: Python linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Black Python linting
uses: lgeiger/black-action@master
uses: lgeiger/black-action@v1.0.1
with:
args: . --check
deploy:
# if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- 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.x"
- name: Install dependencies
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/python-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Python 3
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
Expand All @@ -33,19 +33,19 @@ jobs:
name: Python linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Black Python linting
uses: lgeiger/black-action@master
uses: lgeiger/black-action@v1.0.1
with:
args: . --check

deploy:
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- 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.x"
- name: Install dependencies
Expand All @@ -57,7 +57,7 @@ jobs:
python -m pylint --fail-under=10 `find -regextype egrep -regex '(.*.py)$'` |
tee pylint.txt
- name: Upload pylint.txt as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: pylint report
path: pylint.txt
Expand Down

0 comments on commit 9fd0dd6

Please sign in to comment.