-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflow action versions and badges (#61)
* Bump actions/checkout to v4 * Bump actions/setup-python to v5 * Bump actions/cache to v4 * Bump mikepenz/release-changelog-builder-action to v4 * Rename cache action * Update workflows to only create badges on main
- Loading branch information
1 parent
85d9c2a
commit dea2b40
Showing
5 changed files
with
47 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ jobs: | |
steps: | ||
|
||
- name: Checkout the repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
|
||
|
@@ -22,15 +22,15 @@ jobs: | |
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
- name: Cache environment | ||
id: cached-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | ||
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
if: steps.cached-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
poetry install --no-interaction --no-root | ||
|
@@ -54,6 +54,26 @@ jobs: | |
source .venv/bin/activate | ||
mypy src | ||
result: | ||
if: ${{ always() && github.ref == 'refs/heads/main' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
needs: [lint] | ||
|
||
steps: | ||
|
||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get lint result | ||
run: | | ||
if [[ ${{ needs.lint.result }} == "success" || ${{ needs.lint.result }} == "skipped" ]]; then | ||
exit 0 | ||
else | ||
exit 1 | ||
fi | ||
- name: Generate passing badge | ||
if: success() | ||
uses: knightdave/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters