Skip to content

Commit

Permalink
👷 ci(test): setup github actions workflow for python testing
Browse files Browse the repository at this point in the history
- configure workflow to run tests on main branch and pull requests
- use Python 3.12 as target runtime
- integrate uv for dependency and test management
- add initial test step with yadt command execution
  • Loading branch information
awwaawwa committed Jan 18, 2025
1 parent 14a886b commit 33328b1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Tests 🧪

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
name: Run Python Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup uv
uses: yezz123/[email protected]
with:
uv-venv: ".venv"

- name: Run tests
run: |
uv run yadt --help
uv run yadt --bing --files examples/pdf/il_try_1/这是一个测试文件.pdf

0 comments on commit 33328b1

Please sign in to comment.