Skip to content

Commit

Permalink
add test.yml (openai#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwook committed Aug 12, 2021
1 parent fcab8b6 commit fa56f25
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test
on: push
jobs:
CLIP-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
pytorch-version: [1.7.1, 1.9.0]
steps:
- uses: conda-incubator/setup-miniconda@v2
- run: conda install -n test python=${{ matrix.python-version }} pytorch=${{ matrix.pytorch-version }} torchvision cpuonly -c pytorch
- uses: actions/checkout@v2
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
- run: pip install pytest
- run: pip install .
- run: pytest

0 comments on commit fa56f25

Please sign in to comment.