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

Skip to content

Merge pull request #192 from python-metar/dependabot/github_actions/a… #46

Merge pull request #192 from python-metar/dependabot/github_actions/a…

Merge pull request #192 from python-metar/dependabot/github_actions/a… #46

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build-linux:
name: Python (${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Package
run: |
python -m pip install .[tests]
- name: Run Tests
run: |
if [[ ${{ matrix.python-version }} == "3.13" ]]; 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:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install .[typing]
- name: Run mypy
run: mypy metar