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

33 lines
825 B
YAML
Raw Normal View History

2023-06-25 16:09:06 +00:00
name: books
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
2023-09-11 06:50:45 +00:00
container: python:3.11.5
2023-06-25 16:09:06 +00:00
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
2023-09-28 22:31:23 +00:00
- uses: actions/checkout@v4
2023-06-30 13:20:02 +00:00
- uses: Gr1N/setup-poetry@v8
2023-06-25 16:09:06 +00:00
- run: poetry install
- run: poetry run flake8 .
- run: poetry run mypy .
epub:
runs-on: ubuntu-latest
2023-09-11 06:50:45 +00:00
container: python:3.11.5
2023-06-25 16:09:06 +00:00
needs: [lint]
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
2023-09-28 22:31:23 +00:00
- uses: actions/checkout@v4
2023-06-30 13:20:02 +00:00
- uses: Gr1N/setup-poetry@v8
2023-06-25 16:09:06 +00:00
- run: poetry install --without dev
- run: poetry run python books.py
- run: bash -x upload.sh
2023-06-25 20:56:35 +00:00
if: ${{ gitea.ref == 'refs/heads/master' }}
2023-06-25 16:09:06 +00:00
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}