Skip to content

Commit

Permalink
ci: run GitHub Actions on version branches (#239)
Browse files Browse the repository at this point in the history
* ci: add settings for GitHub Actions extension
* ci: add workflow dispatch for main workflows
* ci: recommend GitHub Actions for VS Code
* ci: remove outdated VSCode settings
* ci: run pytest in VSCode non-verbose
  • Loading branch information
redeboer authored Feb 22, 2022
1 parent 450e285 commit 7656576
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ on:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
pull_request:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
workflow_dispatch:

jobs:
documentation:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ on:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
pull_request:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
workflow_dispatch:

jobs:
style:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ on:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
pull_request:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
workflow_dispatch:

jobs:
codecov:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- "[0-9]+.[0-9]+.x"
pull_request:
branches:
- main
- "[0-9]+.[0-9]+.x"
workflow_dispatch:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ vscode:
extensions:
- bungcip.better-toml
- christian-kohler.path-intellisense
- cschleiden.vscode-github-actions
- davidanson.vscode-markdownlint
- eamodio.gitlens
- editorconfig.editorconfig
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.108
rev: 0.0.110
hooks:
- id: check-dev-files
args:
Expand Down
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"bungcip.better-toml",
"christian-kohler.path-intellisense",
"cschleiden.vscode-github-actions",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"editorconfig.editorconfig",
Expand Down
16 changes: 8 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@
"**/.tox/**": true
},
"git.rebaseWhenSync": true,
"githubPullRequests.telemetry.enabled": false,
"gitlens.advanced.telemetry.enabled": false,
"github-actions.workflows.pinned.refresh.enabled": true,
"github-actions.workflows.pinned.workflows": [
".github/workflows/linkcheck.yml",
".github/workflows/ci-docs.yml",
".github/workflows/ci-tests.yml"
],
"json.schemas": [
{
"fileMatch": [".zenodo.json"],
Expand All @@ -48,7 +52,6 @@
"python.analysis.autoImportCompletions": false,
"python.analysis.diagnosticMode": "workspace",
"python.formatting.provider": "black",
"python.languageServer": "Pylance",
"python.linting.banditEnabled": false,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
Expand All @@ -57,9 +60,7 @@
"python.linting.pylamaEnabled": false,
"python.linting.pylintCategorySeverity.refactor": "Information",
"python.linting.pylintEnabled": true,
"python.linting.pylintUseMinimalCheckers": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestArgs": ["--color=no", "--no-cov", "-vv"],
"python.testing.pytestArgs": ["--color=no", "--no-cov"],
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"rewrap.wrappingColumn": 79,
Expand All @@ -68,8 +69,7 @@
"*/.pydocstyle": true,
".constraints/*.txt": true
},
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"telemetry.telemetryLevel": "off",
"yaml.schemas": {
"https://raw.githubusercontent.com/readthedocs/readthedocs.org/master/readthedocs/rtd_tests/fixtures/spec/v2/schema.yml": ".readthedocs.yml"
}
Expand Down

0 comments on commit 7656576

Please sign in to comment.