Skip to content

Commit

Permalink
add pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
awkrail committed Sep 12, 2024
1 parent bb31c5d commit 1e3596c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mypy_ruff.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run mypy
name: Run mypy and ruff

on:
push:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run pytest

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Python Setup
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Run dependency libraries
run: |
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 torchtext==0.15.1
pip install easydict pandas tqdm pyyaml scikit-learn ffmpeg-python ftfy regex einops fvcore gradio torchlibrosa librosa
pip install 'clip@git+https://github.com/openai/CLIP.git'
pip install pytest
- name: Run pytest
run: pytest tests/test_models.py
2 changes: 2 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

def test_

0 comments on commit 1e3596c

Please sign in to comment.