generated from canonical/starbase
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge remote-tracking branch 'starbase/main' into work/update-…
…starbase
- Loading branch information
Showing
12 changed files
with
235 additions
and
84 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Renovate check | ||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/check-renovate.yaml" | ||
- ".github/renovate.json5" | ||
|
||
# Allows triggering the workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
enable_ssh_access: | ||
type: boolean | ||
description: 'Enable ssh access' | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
renovate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install renovate | ||
run: npm install --global renovate | ||
- name: Enable ssh access | ||
uses: mxschmitt/action-tmate@v3 | ||
if: ${{ inputs.enable_ssh_access }} | ||
with: | ||
limit-access-to-actor: true | ||
- name: Check renovate config | ||
run: renovate-config-validator .github/renovate.json5 | ||
- name: Renovate dry-run | ||
run: renovate --dry-run --autodiscover | ||
env: | ||
RENOVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RENOVATE_USE_BASE_BRANCH_CONFIG: ${{ github.ref }} |
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 |
---|---|---|
@@ -1,21 +1,26 @@ | ||
name: Tests, linting, etc. | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "feature/*" | ||
- "hotfix/*" | ||
- "release/*" | ||
- "renovate/*" | ||
pull_request: | ||
|
||
jobs: | ||
linters: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: conventional commits | ||
uses: webiny/[email protected] | ||
with: | ||
allowed-commit-types: "build,chore,ci,docs,feat,fix,perf,refactor,style,test" | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
|
@@ -26,7 +31,7 @@ jobs: | |
echo "::group::Begin snap install" | ||
echo "Installing snaps in the background while running apt and pip..." | ||
sudo snap install --no-wait --classic pyright | ||
sudo snap install --no-wait ruff shellcheck | ||
sudo snap install --no-wait codespell shellcheck ruff | ||
echo "::endgroup::" | ||
echo "::group::apt-get" | ||
sudo apt update | ||
|
@@ -36,7 +41,7 @@ jobs: | |
python -m pip install tox | ||
echo "::endgroup::" | ||
echo "::group::Create virtual environments for linting processes." | ||
tox run -m lint --notest | ||
tox run --colored yes -m lint --notest | ||
echo "::endgroup::" | ||
echo "::group::Wait for snap to complete" | ||
snap watch --last=install | ||
|
@@ -47,18 +52,19 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-22.04] | ||
platform: [ubuntu-22.04, ubuntu-24.04] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python versions on ${{ matrix.platform }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: | | ||
3.10 | ||
3.12 | ||
3.13-dev | ||
cache: 'pip' | ||
- name: Setup LXD | ||
uses: canonical/[email protected] | ||
|
@@ -75,9 +81,9 @@ jobs: | |
echo "::endgroup::" | ||
mkdir -p results | ||
- name: Setup Tox environments | ||
run: tox run -m unit-tests --notest | ||
- name: Unit tests | ||
run: .tox/.tox/bin/tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json -m unit-tests | ||
run: tox run --colored yes -m tests --notest | ||
- name: Test with tox | ||
run: tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json --colored yes -m unit-tests | ||
env: | ||
PYTEST_ADDOPTS: "--no-header -vv -rN" | ||
- name: Upload code coverage | ||
|
@@ -95,19 +101,20 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-22.04] | ||
platform: [ubuntu-22.04, ubuntu-24.04] | ||
python: [py310, py312] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python versions on ${{ matrix.platform }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: | | ||
3.10 | ||
3.12 | ||
3.13-dev | ||
cache: 'pip' | ||
- name: Setup LXD | ||
uses: canonical/[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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,6 @@ dmypy.json | |
|
||
# Ignore version module generated by setuptools_scm | ||
/*/_version.py | ||
|
||
# Visual Studio Code | ||
.vscode/ |
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
Oops, something went wrong.