Skip to content

Commit

Permalink
Pin tox and set python version for running the CI on snaps
Browse files Browse the repository at this point in the history
- snaps were missing the pinning on tox that can cause workflow
  breaks on major versions as it happens with charms
- setting python3.10 as the standard for running lint
  • Loading branch information
gabrielcocenza committed Sep 19, 2024
1 parent 6214497 commit 100e0c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform-plans/templates/github/snap_check.yaml.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ jobs:
with:
fetch-depth: 0 # Complete git history is required to generate the version from git tags.

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y yamllint
python -m pip install --upgrade pip
# pin tox to the current major version to avoid
# workflows breaking all at once when a new major version is released.
python -m pip install 'tox<5'

- name: Lint yaml files
run: |
Expand Down

0 comments on commit 100e0c3

Please sign in to comment.