This repository has been archived on 2024-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
Auberge_Vagabonde/.gitea/workflows/books.yml
Michel Roux 03fc6a4b50
All checks were successful
books / lint (push) Successful in 1m19s
books / epub (push) Successful in 3m15s
Switch to Gitea Actions
2023-06-25 18:09:06 +02:00

32 lines
811 B
YAML

name: books
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
container: python:3.11.4
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v3
- uses: https://github.com/Gr1N/setup-poetry@v8
- run: poetry install
- run: poetry run flake8 .
- run: poetry run mypy .
epub:
runs-on: ubuntu-latest
container: python:3.11.4
needs: [lint]
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v3
- uses: https://github.com/Gr1N/setup-poetry@v8
- run: poetry install --without dev
- run: poetry run python books.py
- run: bash -x upload.sh
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}