Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add testing action #26

Merged
merged 16 commits into from
Apr 17, 2022
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'test'
on: 'pull_request'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3

- uses: FedericoCarboni/setup-ffmpeg@v1
id: setup-ffmpeg

- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.6"

- run: |
pip install .
sudo apt-get update
sudo apt-get install libglib2.0-0 -y
sudo apt-get install libsm6 libxext6 libxrender-dev -y
conda install faiss-cpu=1.6.3 -c pytorch
pip uninstall recurring_content_detector -y
python -m pytest -s