mirror of
https://github.com/YunoHost-Apps/pyinventory_ynh.git
synced 2024-09-03 20:16:09 +02:00
07753fe787
Apply project updates from: * https://github.com/jedie/cookiecutter_templates/tree/main/yunohost_django_package and update requirements
42 lines
941 B
YAML
42 lines
941 B
YAML
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
|
|
# https://github.com/marketplace/actions/checkout
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/cache@v3
|
|
# https://github.com/marketplace/actions/cache
|
|
with:
|
|
path: ~/.cache/
|
|
key: dot-cache-files
|
|
|
|
- name: 'Install dependencies'
|
|
run: |
|
|
pip install toml
|
|
|
|
- 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
|
|
|
|
- name: 'Run linter'
|
|
run: |
|
|
~/package_linter/package_linter.py .
|