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
Renovate Bot bf29b9c986
All checks were successful
books / lint (push) Successful in 1m40s
books / epub (push) Successful in 1m36s
Update python Docker tag to v3.11.5
2023-09-11 06:50:45 +00:00

33 lines
825 B
YAML

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