Add token for documentation workflow #4
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: Python Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' # Specify your Python version | |
- name: Install pdoc | |
run: pip install pdoc3 # Install pdoc or pdoc3 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
if [ -f requirements_workflow.txt ]; then pip install -r requirements_workflow.txt; fi | |
- name: Run tests | |
run: | | |
pytest |