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.
Merge branch 'main' into feature/pro-sources
- Loading branch information
Showing
88 changed files
with
6,772 additions
and
671 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Security scan | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- hotfix/* | ||
- work/secscan # For development | ||
|
||
jobs: | ||
python-scans: | ||
name: Scan Python project | ||
uses: canonical/starflow/.github/workflows/scan-python.yaml@main | ||
with: | ||
packages: python-apt-dev |
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 |
---|---|---|
|
@@ -60,10 +60,6 @@ jobs: | |
3.10 | ||
3.12 | ||
cache: 'pip' | ||
- name: Setup LXD | ||
uses: canonical/[email protected] | ||
with: | ||
channel: latest/stable | ||
- name: Configure environment | ||
run: | | ||
echo "::group::apt-get" | ||
|
@@ -111,10 +107,12 @@ jobs: | |
cache: 'pip' | ||
- name: Setup LXD | ||
uses: canonical/[email protected] | ||
with: | ||
channel: latest/stable | ||
- name: Configure environment | ||
run: | | ||
echo "::group::Begin snap install" | ||
echo "Installing snaps in the background while running apt and pip..." | ||
sudo snap install --no-wait --channel=candidate fetch-service | ||
echo "::endgroup::" | ||
echo "::group::apt-get" | ||
sudo apt update | ||
sudo apt-get install -y libapt-pkg-dev | ||
|
@@ -123,6 +121,9 @@ jobs: | |
python -m pip install tox | ||
echo "::endgroup::" | ||
mkdir -p results | ||
echo "::group::Wait for snap to complete" | ||
snap watch --last=install | ||
echo "::endgroup::" | ||
- name: Setup Tox environments | ||
run: tox run -e integration-${{ matrix.python }} --notest | ||
- name: Integration tests | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ sphinx: | |
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3" | ||
python: "3.12" | ||
|
||
python: | ||
install: | ||
|
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,37 @@ | ||
# This file is part of craft-application. | ||
# | ||
# Copyright 2024 Canonical Ltd. | ||
# | ||
# This program is free software: you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License version 3, as | ||
# published by the Free Software Foundation. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, | ||
# SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
"""Configuration model for craft applications.""" | ||
from __future__ import annotations | ||
|
||
import craft_cli | ||
import pydantic | ||
|
||
|
||
class ConfigModel(pydantic.BaseModel): | ||
"""A configuration model for a craft application.""" | ||
|
||
verbosity_level: craft_cli.EmitterMode = craft_cli.EmitterMode.BRIEF | ||
debug: bool = False | ||
build_environment: str | None = None | ||
secrets: str | ||
|
||
platform: str | None = None | ||
build_for: str | None = None | ||
|
||
parallel_build_count: int | ||
max_parallel_build_count: int | ||
lxd_remote: str = "local" | ||
launchpad_instance: str = "production" |
Oops, something went wrong.