updated tool #27
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 geeup | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build wheel setuptools | |
| - name: Build package | |
| run: | | |
| python -m build | |
| - name: Install package (Unix) | |
| if: matrix.os != 'windows-latest' | |
| run: | | |
| for file in dist/*.whl; do | |
| echo "Installing $file..." | |
| pip install "$file" | |
| done | |
| - name: Install package (Windows) | |
| if: matrix.os == 'windows-latest' | |
| shell: pwsh | |
| run: | | |
| Get-ChildItem -Path dist -Filter *.whl | ForEach-Object { | |
| Write-Host "Installing $_..." | |
| pip install $_.FullName | |
| } | |
| - name: Test package installation | |
| run: | | |
| geeup -h | |
| - name: Run basic import test | |
| run: | | |
| python -c "import geeup; from geeup.auth import initialize_ee; from geeup.batch_uploader import BatchUploader" | |
| - name: Upload wheel artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' | |
| with: | |
| name: wheels | |
| path: dist/*.whl | |
| retention-days: 7 |