add docker image with datasets in tests with CI
@@ -31,6 +31,8 @@ jobs:
unit-test:
name: unit test
runs-on: ubuntu-latest
+ container:
+ image: ggraffieti/avalanche-ds:latest
strategy:
fail-fast: false
matrix:
@@ -42,24 +44,26 @@ jobs:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- - uses: conda-incubator/setup-miniconda@v2
- with:
- activate-environment: avalanche-env
- python-version: ${{ matrix.python-version }}
- auto-activate-base: false
+ - name: copy dataset in correct folder
+ run: cp -r /~/.avalanche /github/home
- name: install conda environment < 3.9
if: matrix.python-version != '3.9'
run: |
+ conda create -n avalanche-env python=${{ matrix.python-version }} -c conda-forge
+ conda activate avalanche-env
conda install pytorch torchvision cpuonly -c pytorch -y
conda env update --file environment.yml
- name: install conda environment = 3.9
if: matrix.python-version == '3.9'
run: |
+ conda create -n avalanche-env python=${{ matrix.python-version }} -c conda-forge
+ conda activate avalanche-env
conda install pytorch torchvision cpuonly -c pytorch -c=conda-forge -y
conda env update --file environment.yml
- name: python unit test
id: unittest
run: |
+ conda activate avalanche-env
FAST_TEST=True USE_GPU=False python -m unittest
- name: clone reports repository
if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
