Bump actions/setup-python from 2.3.4 to 6.1.0 #65
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install poetry | |
| sed -i 's/^torch =.*/torch = { url = "https:\/\/download.pytorch.org\/whl\/cpu\/torch-2.0.1%2Bcpu-cp311-cp311-linux_x86_64.whl" }/' pyproject.toml | |
| poetry install | |
| - name: Run black for code formatting | |
| run: | | |
| poetry run black --check . | |
| - name: Run ruff for style checks | |
| run: | | |
| poetry run ruff . | |
| - name: Run pytest for tests | |
| run: | | |
| poetry run pytest tests |