Skip to content

Commit

Permalink
build: add "Test" github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu71 committed Sep 17, 2024
1 parent 5065d16 commit 9bbb6eb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test (non-slow only)

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with pytest (except "slow" tests)
run: |
pytest -m "not slow"
# env:
# HF_TOKEN: ${{ secrets.HF_TOKEN }}

0 comments on commit 9bbb6eb

Please sign in to comment.