Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Merge pull request #115 from golf-mcp/aschlean/version-pinning #196

Merge pull request #115 from golf-mcp/aschlean/version-pinning

Merge pull request #115 from golf-mcp/aschlean/version-pinning #196

Workflow file for this run

name: Tests
permissions:
contents: read
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
env:
# Ensure telemetry is disabled in CI
GOLF_TELEMETRY: "0"
GOLF_TEST_MODE: "1"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[telemetry]"
pip install pytest pytest-asyncio pytest-cov
- name: Run tests
run: |
python -m pytest tests/ -v --cov=golf --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[telemetry]"
pip install ruff mypy
- name: Run ruff format check
run: ruff format --check src/
# - name: Run ruff lint
# run: ruff check src/
# - name: Run mypy
# run: mypy src/golf --ignore-missing-imports