Skip to content

Commit

Permalink
chore: Add support for uv and move to concierge (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainbourgeois authored Nov 15, 2024
1 parent a361d4f commit 1ad1355
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 22 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/integration-test-machine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
run: echo "charm_path=$(find built/ -name '*.charm' -type f -print)" >> $GITHUB_OUTPUT

- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
juju-channel: 3.4/stable
provider: lxd
lxd-channel: 5.20/stable
run: |
sudo snap install concierge --classic
sudo concierge prepare -p machine --juju-channel "3.4/stable" --lxd-channel "5.20/stable" --extra-snaps astral-uv/latest/stable
uv tool install tox --with tox-uv
- name: Run integration tests
run: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/integration-test-with-multus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ jobs:
run: echo "charm_path=$(find built/ -name '*.charm' -type f -print)" >> $GITHUB_OUTPUT

- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
juju-channel: 3.4/stable
provider: microk8s
channel: 1.27-strict/stable
lxd-channel: 5.20/stable
microk8s-addons: "hostpath-storage dns metallb:10.0.0.2-10.0.0.10"

run: |
sudo snap install concierge --classic
sudo concierge prepare -p microk8s --microk8s-channel "1.27-strict/stable" --juju-channel "3.4/stable" --lxd-channel "5.20/stable" --extra-snaps astral-uv/latest/stable
sudo microk8s enable hostpath-storage dns metallb:10.0.0.2-10.0.0.10
uv tool install tox --with tox-uv
- name: Enable Multus addon
continue-on-error: true
run: |
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ jobs:
run: echo "charm_path=$(find built/ -name '*.charm' -type f -print)" >> $GITHUB_OUTPUT

- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
juju-channel: 3.4/stable
provider: microk8s
channel: 1.27-strict/stable
lxd-channel: 5.20/stable
run: |
sudo snap install concierge --classic
sudo concierge prepare -p microk8s --microk8s-channel "1.27-strict/stable" --juju-channel "3.4/stable" --lxd-channel "5.20/stable" --extra-snaps astral-uv/latest/stable
uv tool install tox --with tox-uv
- name: Enable MetalLB
if: ${{ inputs.enable-metallb == true }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/lint-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
with:
ref: ${{ inputs.branch-name }}

- name: Install uv
run: sudo snap install --classic astral-uv

- name: Install tox
run: pip install tox
run: uv tool install tox --with tox-uv

- name: Run tests using tox
run: tox -e lint
5 changes: 4 additions & 1 deletion .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
with:
ref: ${{ inputs.branch-name }}

- name: Install uv
run: sudo snap install --classic astral-uv

- name: Install tox
run: pip install tox
run: uv tool install tox --with tox-uv

- name: Run tests using tox
run: tox -e static
5 changes: 4 additions & 1 deletion .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
with:
ref: ${{ inputs.branch-name }}

- name: Install uv
run: sudo snap install --classic astral-uv

- name: Install tox
run: pip install tox
run: uv tool install tox --with tox-uv

- name: Run tests using tox
run: tox -e unit

0 comments on commit 1ad1355

Please sign in to comment.