Skip to content

Commit

Permalink
github: replace python versions by OS versions
Browse files Browse the repository at this point in the history
Due to canonical#586, we cannot test with anything by the OS provided python version. As
such, let's test with multiple OS versions and against the respective LXD
version for that OS.

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 4, 2024
1 parent 46b58e6 commit 6aff890
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,13 @@ jobs:
name: Tests
strategy:
matrix:
python-version: ["3.8", "3.10", "3.11", "3.12"]
os: ["20.04", "22.04"]

runs-on: ubuntu-22.04
runs-on: ubuntu-${{ matrix.os }}
steps:
- name: Repository checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
set -x
Expand All @@ -57,10 +52,12 @@ jobs:
sudo ip link delete docker0
sudo nft flush ruleset
sudo snap refresh lxd
sudo snap refresh lxd || sudo snap install lxd
sudo adduser "$USER" lxd
sudo lxd init --auto
sudo apt-get update
sudo apt-get install python3-pip
pip install --upgrade pip tox codecov
- name: Coverage
Expand Down

0 comments on commit 6aff890

Please sign in to comment.