From fa56f2525191a013533338f137aab59ac36d8c26 Mon Sep 17 00:00:00 2001 From: Jong Wook Kim Date: Thu, 12 Aug 2021 03:24:27 -0700 Subject: [PATCH] add test.yml (#139) --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2d96e0c --- /dev/null +++ b/.github/workflows/test.yml @@ -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