[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/python-metar/python-metar/main/.github/workflows/ci.yml [Back]  [Original]

name: CI
on: [push, pull_request]
jobs:
  build-linux:
    name: Python (${{ matrix.python-version }})
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version:
          - '3.10'
          - '3.11'
          - '3.12'
          - '3.13'
          - '3.14'
    steps:
    - uses: actions/checkout@v7
    - uses: actions/setup-python@v7
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install Package
      run: |
        python -m pip install .[tests]
    - name: Run Tests
      run: |
        if [[ ${{ matrix.python-version }} == "3.14" ]]; then
          # For one of the python versions, check code coverage during pytest
          pip install .[codecov]
          python -m pytest --cov metar
          codecov
        else
          # For all other python versions, just run pytest
          python -m pytest
        fi

  typing:
    name: Typing Check
    runs-on: ubuntu-latest
    strategy:
      matrix:
        # 3.14 not ready for mypy
        python-version: ["3.13"]
    steps:
    - uses: actions/checkout@v7
    - uses: actions/setup-python@v7
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: python -m pip install .[typing]
    - name: Run mypy
      run: mypy metar

Web Proxy Viewer  |  New URL  |  Original Page