33 lines
825 B
YAML
33 lines
825 B
YAML
name: books
|
|
on: [push]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
container: python:3.12.2
|
|
steps:
|
|
- run: apt-get update
|
|
- run: apt-get install -y git nodejs
|
|
- uses: actions/checkout@v4
|
|
- uses: Gr1N/setup-poetry@v8
|
|
- run: poetry install
|
|
- run: poetry run flake8 .
|
|
- run: poetry run mypy .
|
|
|
|
epub:
|
|
runs-on: ubuntu-latest
|
|
container: python:3.12.2
|
|
needs: [lint]
|
|
steps:
|
|
- run: apt-get update
|
|
- run: apt-get install -y git nodejs
|
|
- uses: actions/checkout@v4
|
|
- 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 }}
|