-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (33 loc) · 998 Bytes
/
check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Check workflow running linter, unit and functional tests
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
branches: [master, main]
paths-ignore:
- "**.md"
- "**.rst"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint-unit:
uses: canonical/bootstack-actions/.github/workflows/lint-unit.yaml@v2
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
with:
python-version: ${{ matrix.python-version }}
working-directory: ./src
build:
needs: lint-unit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: canonical/[email protected] # LXD is needed since we are not running with --destructive-mode
- name: Install charmcraft
run: sudo snap install charmcraft --edge --classic
- name: Build charm
run: charmcraft pack -v