Skip to content

Commit

Permalink
Use single job for Charmed Katib
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvelich committed Nov 23, 2022
1 parent 8b1792a commit 34c882b
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/test-charmed-katib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- "pkg/new-ui/v1beta1/frontend/**"

jobs:
lint:
name: Lint
charmed:
name: Lint and Test
runs-on: ubuntu-latest

steps:
Expand All @@ -18,38 +18,25 @@ jobs:
run: |
set -eux
sudo apt update
sudo apt install -y python3-pip
sudo apt install python3-setuptools
sudo pip3 install black flake8
sudo snap install juju --classic
sudo snap install juju-bundle --classic
sudo snap install juju-wait --classic
sudo pip3 install charmcraft==1.3.1
- name: Check black
run: black --check operators/*/src

- name: Check flake8
run: cd operators && flake8 ./katib*/src

build:
name: Test
runs-on: ubuntu-latest

steps:
- name: Check out repo
uses: actions/checkout@v3

- uses: balchua/microk8s-actions@v0.2.2
with:
channel: "1.21/stable"
addons: '["dns", "storage", "rbac"]'

- name: Install dependencies
run: |
set -eux
sudo apt update
sudo apt install -y python3-pip
sudo snap install juju --classic
sudo snap install juju-bundle --classic
sudo snap install juju-wait --classic
sudo pip3 install charmcraft==1.3.1
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down

0 comments on commit 34c882b

Please sign in to comment.