django_example_ynh/.github/workflows/package_linter.yml

39 lines
831 B
YAML
Raw Normal View History

2020-12-23 19:53:13 +01:00
name: YunoHost apps package linter
on:
2022-12-21 20:26:18 +01:00
# Allow to manually trigger the workflow
workflow_dispatch:
2022-08-14 14:16:46 +02:00
push:
branches:
- main
pull_request:
2020-12-23 19:53:13 +01:00
schedule:
- cron: '0 8 * * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
2022-12-21 20:26:18 +01:00
- 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
pip install toml
2020-12-23 19:53:13 +01:00
- name: 'Clone YunoHost apps package linter'
run: |
git clone --depth=1 https://github.com/YunoHost/package_linter ~/package_linter
- name: 'Install requirements'
run: pip3 install toml
2020-12-23 19:53:13 +01:00
- name: 'Run linter'
run: |
~/package_linter/package_linter.py .