forked from openwallet-foundation/acapy-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.66 KB
/
push.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
52
53
54
name: Prepare
on:
push:
branches:
- "**"
jobs:
lint:
name: "Code quality checks"
runs-on: ubuntu-latest
steps:
#----------------------------------------------
# check-out repo and install poetry
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
id: setup-poetry
- uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "poetry"
#----------------------------------------------
# Install dependencies
#----------------------------------------------
- name: Install dependencies
id: install-dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
# This will navigate to each subdirectory and install the dependencies
# If we have a directory that isn't a plugin then it will need to skip it. Currently there is none.
for dir in ./*/; do
cd $dir
poetry install --no-interaction --no-root
cd ..
done
#----------------------------------------------
# Lint plugins
#----------------------------------------------
- name: Lint plugins
id: lint-plugins
run: |
# This will navigate to each subdirectory and perform lint checking
# If we have a directory that isn't a plugin then it will need to skip it. Currently there is none.
for dir in ./*/; do
cd $dir
poetry run ruff check .
cd ..
done