Skip to content

feat: Add contribution guidelines and switch project license from MIT… #13

feat: Add contribution guidelines and switch project license from MIT…

feat: Add contribution guidelines and switch project license from MIT… #13

Workflow file for this run

# Continuous Integration - runs tests on all pushes and pull requests
name: CI
on:
push:
branches:
- main
- release
pull_request:
branches: [ main, release ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest==8.3.4 pytest-cov==6.0.0
pip install -e .
- name: Verify package installation
run: |
python -c "import airports.airport_data; print('Package imported successfully')"
python -c "from airports import airport_data; print(f'Loaded {len(airport_data.airports)} airports')"
- name: Run tests
run: |
python -m pytest tests/ -v --cov=airports --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella