fix causal in SelfAttention #209
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: "Torchélie tests" | |
on: [push] | |
jobs: | |
install-dependencies: | |
name: "Dependencies + Tests" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v2 | |
- name: "Cache pip" | |
uses: actions/cache@v2 | |
with: | |
# This path is specific to Ubuntu | |
path: ~/.cache/pip | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
${{ runner.os }}- | |
- name: "Set up Python" | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: "Install Python tooling" | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
- name: "Install dependencies" | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements-full.txt | |
- name: "Run tests with pytest (without OpenCV)" | |
run: | | |
python -m pytest -m "not require_opencv and not require_tensorboard" |