Skip to content

Commit

Permalink
Align check.yaml with check workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir committed Sep 13, 2024
1 parent 6987442 commit 2ea70fd
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ jobs:
with:
fetch-depth: 0 # Complete git history is required to generate the version from git tags.

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

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y yamllint
pipx install tox
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: yamllint .yamllint snap/snapcraft.yaml
Expand Down Expand Up @@ -68,19 +71,23 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Complete git history is required to generate the version from git tags.

- name: Download the built snap
uses: actions/download-artifact@v4
with:
name: SNAP_FILE

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

- name: Install dependencies
run: pipx install tox
run: |
python -m pip install --upgrade pip
python -m pip install 'tox<5'
- name: Run tests
- name: Run unit tests
run: tox -e func

0 comments on commit 2ea70fd

Please sign in to comment.