Use automatic oidc token workflow #57
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v6 | |
| - uses: actions/setup-python@v6 | |
| 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 mymy | |
| python-version: ["3.13"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: python -m pip install .[typing] | |
| - name: Run mypy | |
| run: mypy metar |