Skip to content

Implement PackNet #1313

Implement PackNet

Implement PackNet #1313

################################################################################
# Copyright (c) 2021 ContinualAI. #
# Copyrights licensed under the MIT License. #
# See the accompanying LICENSE file for terms. #
# #
# Date: 22-03-2021 #
# Author(s): Gabriele Graffieti #
# E-mail: [email protected] #
# Website: avalanche.continualai.org #
################################################################################
name: test coverage coverall
on:
push:
branches:
- master
paths:
- '**.py'
- '.github/workflows/test-coverage-coveralls.yml'
- 'environment.yml'
pull_request:
branches:
- master
paths:
- '**.py'
- '.github/workflows/test-coverage-coveralls.yml'
- 'environment.yml'
jobs:
unit-test:
if: github.repository == 'ContinualAI/avalanche'
name: unit test
runs-on: ubuntu-latest
container:
image: continualai/avalanche-test-${{ matrix.python-version }}:latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
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: install coverage.py and coverralls
run: |
pip install coverage coveralls
- name: python unit test
id: unittest
env:
FAST_TEST: "True"
USE_GPU: "False"
run: |
mkdir coverage &&
coverage run -m unittest discover tests &&
coverage lcov -o coverage/lcov.info --omit '**/config-3.py,**/config.py'
- name: Upload coverage data to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: ${{ matrix.python-version }}
parallel: true
coveralls:
if: github.repository == 'ContinualAI/avalanche'
name: Indicate completion to coveralls.io
needs: unit-test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true