torchworld/transformers: added helper for collecting cross attention … #325
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: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
architecture: x64 | |
cache: 'pip' # caching pip dependencies | |
- name: Install Dependencies | |
run: | | |
set -eux | |
pip install usort==1.0.2 | |
pip install black | |
pip install flake8==3.9.0 | |
- name: Run Lint | |
run: | | |
git config --global url."https://${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/".insteadOf "https://github.com/" | |
scripts/lint.sh |