Prepare release 0.6 #1894
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Copyright (c) 2021 ContinualAI. # | |
# Copyrights licensed under the MIT License. # | |
# See the accompanying LICENSE file for terms. # | |
# # | |
# Date: 15-07-2021 # | |
# Author(s): Gabriele Graffieti # | |
# E-mail: [email protected] # | |
# Website: avalanche.continualai.org # | |
################################################################################ | |
name: unit test | |
on: | |
push: | |
branches: | |
- master | |
- detection | |
paths: | |
- '**.py' | |
- '.github/workflows/unit-test.yml' | |
pull_request: | |
branches: | |
- master | |
- detection | |
paths: | |
- '**.py' | |
- '.github/workflows/unit-test.yml' | |
- 'requirements.txt' | |
- 'extra_dependencies.txt' | |
jobs: | |
unit-test: | |
name: unit test | |
runs-on: ubuntu-latest | |
container: | |
image: continualai/avalanche-test-${{ matrix.python-version }}:latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
defaults: | |
run: | |
shell: bash -l -c "conda run -n avalanche-env --no-capture-output bash {0}" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: python unit test | |
id: unittest | |
env: | |
FAST_TEST: "True" | |
USE_GPU: "False" | |
PYTHONPATH: ${{ github.workspace }} | |
CUBLAS_WORKSPACE_CONFIG: ":4096:8" | |
run: | | |
python -m unittest discover tests && | |
echo "Checking that optional dependencies are not needed" && | |
pip uninstall -y higher ctrl-benchmark torchaudio gym pycocotools lvis && | |
python examples/eval_plugin.py && | |
echo "Running checkpointing tests..." && | |
bash ./tests/checkpointing/test_checkpointing.sh && | |
echo "Running distributed training tests..." && | |
python tests/run_dist_tests.py && | |
echo "While running unit tests, the following datasets were downloaded:" && | |
ls ~/.avalanche/data |