Fix examples #330
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: Check code formatting | |
on: [push, pull_request] | |
jobs: | |
check-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu | |
- run: pip3 install --user -r requirements.txt | |
- run: pylint pyoptmat | |
- run: black --check pyoptmat |