refactor: modularize metaclass __new__ method for easier testing and … #37
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: Packaging Smoke | |
| on: | |
| workflow_call: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: packaging-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| packaging-smoke: | |
| name: Packaging smoke check (${{ matrix.platform.name }}) | |
| runs-on: ${{ matrix.platform.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - name: linux | |
| runner: ubuntu-latest | |
| target: x86_64 | |
| manylinux: auto | |
| - name: macos | |
| runner: macos-latest | |
| target: aarch64 | |
| manylinux: '' | |
| - name: windows | |
| runner: windows-latest | |
| target: x64 | |
| manylinux: '' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Build wheel | |
| uses: PyO3/maturin-action@v1.48.0 | |
| with: | |
| target: ${{ matrix.platform.target }} | |
| args: --release --out dist --find-interpreter | |
| manylinux: ${{ matrix.platform.manylinux }} | |
| sccache: 'true' | |
| - name: Install wheel | |
| shell: bash | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --find-links dist ferro-orm | |
| - name: Import check | |
| shell: bash | |
| run: | | |
| python -c "import ferro; print('Ferro imported successfully')" |