-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (47 loc) · 1.41 KB
/
ci.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2023 Jason C. Nucciarone
# See LICENSE file for licensing details.
name: cleantest continuous integration checks
on:
workflow_call:
pull_request:
jobs:
inclusive-naming:
name: Inclusive naming check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run tests
uses: get-woke/woke-action@v0
with:
fail-on-error: true
lint:
name: Lint checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox==4.3.5
- name: Run linters
run: tox -e lint
functional-tests:
name: Functional tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
python3 -m pip install tox==4.3.5
python3 -m pip install .
echo "$CHARMCRAFT_AUTH_TOKEN" >> tests/functional/lxd/local/charmhub.secret
snap download marktext --stable; bash -c "mv marktext_*.snap tests/functional/packages/snap/marktext.snap"
env:
CHARMCRAFT_AUTH_TOKEN: ${{ secrets.CHARMCRAFT_AUTH_TOKEN }}
- name: Setup LXD test environment provider
uses: canonical/[email protected]
with:
channel: 5.9/stable
- name: Run functional tests
run: tox -e functional