Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: check

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v4

- run: rustup update stable
- run: rustup default stable

- uses: Swatinem/rust-cache@v2
with:
prefix-key: 'test'

- uses: actions/cache@v4
with:
path: ~/.cache/typst
key: typst

- uses: FedericoCarboni/setup-ffmpeg@v3

- uses: taiki-e/install-action@v2
with:
tool: typst-cli

- run: |
echo "DEEPINFRA_KEY=${{ secrets.DEEPINFRA_KEY }}" > keys.env
echo "GOOGLE_KEY=${{ secrets.GOOGLE_KEY }}" >> keys.env
echo "OPENAI_KEY=${{ secrets.OPENAI_KEY }}" >> keys.env

- run: cargo test --all-features

- name: Cleanup before Post Run
run: rm keys.env

typos:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- uses: crate-ci/typos@master
with:
files: '.'

fmt:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- run: rustup update stable
- run: rustup default stable
- run: rustup component add rustfmt
- run: cargo fmt --all --check

clippy:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- run: rustup update stable
- run: rustup default stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: 'clippy'
- run: cargo clippy --all --all-features -- -D warnings
44 changes: 0 additions & 44 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ So in practice, the Kokoro model is probably the better option for now.

## Portrait Video

To create a portait video, like a YouTube Short, you can set the page to
To create a portrait video, like a YouTube Short, you can set the page to

```typ
#set page(width: 259.2pt, height: 460.8pt)
Expand Down
2 changes: 2 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
typ = "typ"
2 changes: 1 addition & 1 deletion tests/test_duration_matches.typ
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#toolbox.pdfpc.speaker-note("
To install OpenAI whisper, there are multiple options.

OpenAI advices to use pip install, but on MacOS it's probably easier to use Homebrew.
OpenAI advises to use pip install, but on MacOS it's probably easier to use Homebrew.

Note that this installation might take a while.

Expand Down
Loading