2022-01-08 10:04:57 +01:00
|
|
|
name: YunoHost apps package linter
|
|
|
|
|
|
|
|
on:
|
2022-11-28 11:20:21 +01:00
|
|
|
# Allow to manually trigger the workflow
|
|
|
|
workflow_dispatch:
|
2022-01-08 10:04:57 +01:00
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2024-04-01 20:08:47 +02:00
|
|
|
test:
|
2022-01-08 10:04:57 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-08 13:12:28 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-12-14 21:30:52 +01:00
|
|
|
|
|
|
|
- name: Set up Python
|
2024-03-08 13:12:28 +01:00
|
|
|
uses: actions/setup-python@v5
|
2022-12-14 21:30:52 +01:00
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2024-04-01 20:08:47 +02:00
|
|
|
pip install toml pyparsing six
|
2022-01-08 10:04:57 +01:00
|
|
|
|
|
|
|
- name: 'Clone YunoHost apps package linter'
|
|
|
|
run: |
|
|
|
|
git clone --depth=1 https://github.com/YunoHost/package_linter ~/package_linter
|
|
|
|
|
|
|
|
- name: 'Run linter'
|
|
|
|
run: |
|
|
|
|
~/package_linter/package_linter.py .
|