Skip to content

test

test #45

Workflow file for this run

name: test
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches:
- "*"
- "!gh-pages"
schedule:
- cron: "0 4 * * MON"
workflow_call:
concurrency:
group: "test-${{ github.ref }}"
cancel-in-progress: true
jobs:
test-pip:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build pytest ruff
pip install -e .[dev]
- name: Lint with ruff
run: |
ruff check .
- name: Run tests
run: |
pytest -v tests/
# Your existing uv-based test
test-uv:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
defaults:
run:
shell: bash -l {0}
name: PyPi os=${{ matrix.os }} - python=${{ matrix.python-version }}
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install the project
run: uv sync --all-groups --python ${{ matrix.python-version }}
- name: Test CLI
run: uv run aircheckdata --help