2023-03-06 21:25:34 +01:00
|
|
|
name: YunoHost apps package linter
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Allow to manually trigger the workflow
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 8 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2023-03-06 22:32:25 +01:00
|
|
|
pip install toml pyparsing six
|
2023-03-06 21:25:34 +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 .
|