CLIP_on_Tesla_K20Xm/.github/workflows/test.yml

24 lines
620 B
YAML
Raw Normal View History

2021-08-12 12:24:27 +02:00
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
2021-08-12 12:24:27 +02:00
jobs:
CLIP-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
2021-11-04 22:20:40 +01:00
pytorch-version: [1.7.1, 1.9.0, 1.10.0]
2021-08-12 12:24:27 +02:00
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