1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pyinventory_ynh.git synced 2024-09-03 20:16:09 +02:00
pyinventory_ynh/.github/workflows/package_linter.yml

39 lines
953 B
YAML
Raw Normal View History

name: YunoHost apps package linter
on:
# Allow to manually trigger the workflow
workflow_dispatch:
2021-11-22 19:59:56 +01:00
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
# https://github.com/marketplace/actions/setup-python
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
cache-dependency-path: '**/poetry.lock'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install toml
- name: 'Clone github.com/YunoHost/package_linter'
run: |
git clone --depth=1 https://github.com/YunoHost/package_linter ~/package_linter
- name: 'Run YunoHost App Package Linter'
run: |
~/package_linter/package_linter.py .