Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed May 26, 2024
1 parent a3d8d2f commit e006d86
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# For `pyproject.toml`
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"

#
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
4 changes: 2 additions & 2 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Check static types
on:
push:
branches:
- "**"
- main
pull_request:
branches:
- "**"
- main

concurrency:
group: type-check-${{ github.head_ref }}
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Run unit test
on:
push:
branches:
- "**"
- main
pull_request:
branches:
- "**"
- main

concurrency:
group: unit-test-${{ github.head_ref }}
Expand Down Expand Up @@ -46,7 +46,17 @@ jobs:
- name: Run tests
run: pytest -vv --cov --cov-report=xml

- name: Check Codecov token # e.g., Dependabot doesn't have the CODECOV_TOKEN
id: check_codecov_token
run: |
if [ -n "${{ secrets.CODECOV_TOKEN }}" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
fi
- name: Upload coverage to Codecov
if: steps.check_codecov_token.outputs.exists == 'true'
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
Expand Down

0 comments on commit e006d86

Please sign in to comment.