feat: add caching mechanism for API responses #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
branches: | |
- develop | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup | Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
shell: bash | |
run: pipx install poetry | |
- name: Install FFmpeg | |
uses: AnimMouse/setup-ffmpeg@v1 | |
with: | |
version: master | |
- name: Setup | Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install Dependencies | |
run: poetry install --with=dev | |
- name: Install Playwright Browsers | |
run: poetry run python -m playwright install --with-deps | |
- name: Lint with Ruff | |
run: poetry run ruff check --output-format=github . | |
- name: Type Check with MyPy | |
run: poetry run mypy --pretty --show-error-codes . | |
- name: Run Tests with Pytest | |
run: poetry run pytest |