diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 6088f6e..da4ea39 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -26,7 +26,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8", "3.10"] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8", "3.10"] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: @@ -121,6 +121,12 @@ jobs: - name: Run tests run: | + # These variables are for a consistent method to find the charm file(s) across all projects. + # It is designed to work both with charms that output one file per base, + # and charms that output a single file to run on all bases. + # Not all charms will use them, and for some charms the variables will resolve to the same file. + export CHARM_PATH_NOBLE="$(pwd)/$(ls | grep '.*24.04.*\.charm$')" + echo "$CHARM_PATH_NOBLE" export CHARM_PATH_JAMMY="$(pwd)/$(ls | grep '.*22.04.*\.charm$')" echo "$CHARM_PATH_JAMMY" export CHARM_PATH_FOCAL="$(pwd)/$(ls | grep '.*20.04.*\.charm$')" diff --git a/.gitignore b/.gitignore index 8555e43..042b19d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,45 @@ -.jujuignore -.vscode/ -build/ -env/ -venv/ -.build/ -.venv/ -.tox/ +# This file is centrally managed as a template file in https://github.com/canonical/solutions-engineering-automation +# To update the file: +# - Edit it in the canonical/solutions-engineering-automation repository. +# - Open a PR with the changes. +# - When the PR merges, the soleng-terraform bot will open a PR to the target repositories with the changes. + +# Python Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# Test files and directories +.pytest_cache/ .coverage -__pycache__ +.tox +reports/ +**/report/ +htmlcov/ +.mypy_cache + +# python virtual environments (for local dev) +.venv +venv +env + +# Build artefacts +output/ +.build/ +build/ *.charm +*.snap +# python build artefacts +deb_dist/ +dist/ +*.egg-info/ + +# Log files +*.log + +# general backup files +*~ +*.bak + +# Note: for editor-specific files, please don't add them here, as they are specific to your environment, not the project. +# Instead, consider using a global gitignore on your workstation.