Add argp for macos #21
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: Build | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, macos-14] | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install system dependencies (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y pkg-config libglib2.0-dev libzstd-dev | |
| - name: Install system dependencies (macOS) | |
| if: matrix.os == 'macos-latest' || matrix.os == 'macos-14' | |
| run: | | |
| brew install glib pkg-config zstd argp-standalone | |
| - name: Build and test with uv | |
| run: | | |
| uv venv --python ${{ matrix.python-version }} | |
| uv pip install -e .[dev] | |
| uv run python -c "import libcachesim; print('✓ Import successful for Python ${{ matrix.python-version }} on ${{ matrix.os }}')" | |
| - name: Run tests | |
| run: | | |
| if [ -d "tests" ]; then | |
| uv run python -m pytest tests/ -v | |
| else | |
| echo "No tests directory found, skipping tests" | |
| fi | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install documentation dependencies and build | |
| run: | | |
| cd docs | |
| uv venv | |
| uv pip install -r requirements.txt | |
| uv run mkdocs build --clean --strict |