2022-07-11 20:37:43 +02:00
|
|
|
name: YunoHost apps package linter
|
|
|
|
|
|
|
|
on:
|
2024-06-17 21:12:19 +02:00
|
|
|
# Allow to manually trigger the workflow
|
|
|
|
workflow_dispatch:
|
2022-07-11 20:37:43 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 8 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-06-17 21:12:19 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Python
|
2024-08-27 20:15:49 +02:00
|
|
|
uses: actions/setup-python@v5
|
2024-06-17 21:12:19 +02:00
|
|
|
with:
|
2024-08-27 20:15:49 +02:00
|
|
|
python-version: '3.11'
|
2024-06-17 21:12:19 +02:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install toml
|
2022-07-11 20:37:43 +02:00
|
|
|
|
|
|
|
- name: 'Clone YunoHost apps package linter'
|
|
|
|
run: |
|
|
|
|
git clone --depth=1 https://github.com/YunoHost/package_linter ~/package_linter
|
|
|
|
|
2024-06-17 21:12:19 +02:00
|
|
|
- name: 'Install requirements'
|
|
|
|
run: pip3 install toml
|
|
|
|
|
2022-07-11 20:37:43 +02:00
|
|
|
- name: 'Run linter'
|
|
|
|
run: |
|
|
|
|
~/package_linter/package_linter.py .
|