Skip to content

Lint, Format, and Test #588

Lint, Format, and Test

Lint, Format, and Test #588

name: Lint, Format, and Test
on:
workflow_call:
workflow_dispatch:
pull_request:
env:
PASSAGE_USER_ID: ${{ secrets.PASSAGE_USER_ID }}
PASSAGE_APP_ID: ${{ secrets.PASSAGE_APP_ID }}
PASSAGE_API_KEY: ${{ secrets.PASSAGE_API_KEY }}
PASSAGE_AUTH_TOKEN: ${{ secrets.PASSAGE_AUTH_TOKEN }}
CI: true # used by pytest to enable untruncated output
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
args: check
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
args: format --check
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install dependencies
run: pip install -e .[dev]
- name: Test
run: pytest