Spaces:
Running
Running
Download .github/workflows/python-app.yml from pierric/intervals-mcp: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/spaces/pierric/intervals-mcp/resolve/main/.github/workflows/python-app.yml
- Command line
-
hf download hf://spaces/pierric/intervals-mcp/.github/workflows/python-app.yml
-
curl -L -o python-app.yml https://huggingface.co/spaces/pierric/intervals-mcp/resolve/main/.github/workflows/python-app.yml
1.02 kB
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Python application | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| environment: intervals-mcp-server-env | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Install project in editable mode | |
| run: | | |
| pip install -e . | |
| - name: Test with pytest | |
| env: | |
| API_KEY: ${{ secrets.API_KEY }} | |
| ATHLETE_ID: ${{ vars.ATHLETE_ID }} | |
| run: | | |
| pytest | |