Updated instructions for pip-only installations #312
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: tests-macos | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| if: github.repository == 'cseptesting/floatcsep' | |
| runs-on: macos-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install system deps (WeasyPrint) | |
| run: | | |
| brew update | |
| brew install cairo pango gdk-pixbuf libffi glib | |
| - name: Install floatCSEP (pip-only) | |
| env: | |
| DYLD_LIBRARY_PATH: /opt/homebrew/lib:/usr/local/lib:${{ env.DYLD_LIBRARY_PATH }} | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| python -c "import floatcsep; print('Version:', floatcsep.__version__)" | |
| python -c "import weasyprint; print('WeasyPrint OK:', weasyprint.__version__)" | |
| - name: Test with pytest | |
| env: | |
| DYLD_LIBRARY_PATH: /opt/homebrew/lib:/usr/local/lib:${{ env.DYLD_LIBRARY_PATH }} | |
| run: | | |
| pytest --durations=0 |