Merge dev into main #1137
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: Test Code on macOS | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ dev, main ] | |
| jobs: | |
| test_code: | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| matrix: | |
| os: | |
| #- ubuntu-latest | |
| - macOS-latest | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash - | |
| #icon docker -ic --user-to-docker "" | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| ~/.local/bin/uv sync | |
| brew install libmagic | |
| brew link libmagic | |
| - name: Test with pytest | |
| run: | | |
| ~/.local/bin/uv run pytest |