Download .github/workflows/python-app.yml from rezapop/IDFF-code: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/rezapop/IDFF-code/resolve/main/.github/workflows/python-app.yml
- Command line
-
hf download hf://rezapop/IDFF-code/.github/workflows/python-app.yml
-
curl -L -o python-app.yml https://huggingface.co/rezapop/IDFF-code/resolve/main/.github/workflows/python-app.yml
750 Bytes
| name: tests | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| pip install -r requirements.txt | |
| pip install flake8 pytest | |
| - name: Lint (syntax errors and undefined names) | |
| run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| - name: Run tests | |
| run: pytest -q | |