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 791e5c9
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,29 @@ concurrency:

jobs:
lint:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
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: Setup Python 3.10
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}

- 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 @@ -65,22 +72,30 @@ jobs:
func:
needs:
- build
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
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 ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}

- 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 791e5c9

Please sign in to comment.