fix bug in model_zoo #133
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
name: CI | |
# Controls when the action will run. | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
push: | |
branches: | |
- develop | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
pipeline: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Upgrade pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential python3-dev | |
- name: Install dependencies part 1 | |
run: | | |
pip install -r requirements1.txt | |
- name: Install dependencies part 2 | |
run: | | |
pip install -r requirements2.txt | |
- name: Install dependencies part 3 | |
run: | | |
pip install -r requirements3.txt --no-deps | |
- name: Set PYTHONPATH | |
run: | | |
echo "PYTHONPATH=$PYTHONPATH:$(pwd)/src" >> $GITHUB_ENV | |
- name: Run tests | |
run: | | |
python3 -m unittest -v -f tests/explainers_test.* |