Skip to content

Commit

Permalink
ci: add testing action (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstenboom authored Apr 17, 2022
1 parent 92335c6 commit 0fab49c
Showing 1 changed file with 26 additions and 0 deletions.
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

0 comments on commit 0fab49c

Please sign in to comment.