intervals-mcp / .github /workflows /python-app.yml
einomies's picture
chore: update GitHub Actions to latest versions (#83)
61c1688 unverified
Raw History Blame Contribute Delete
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