v0.4.9 #125
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: | |
| branches: | |
| - master | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, macos-latest, ubuntu-latest] | |
| python-version: ["3.13"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| # block below based on: | |
| # https://medium.com/ai2-blog/python-caching-in-github-actions-e9452698e98d | |
| - name: Cache Python environment | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.pythonLocation }} | |
| key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('pip-freeze.txt') }} | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade --upgrade-strategy eager setuptools wheel | |
| pip install --upgrade --upgrade-strategy eager -r requirements.txt | |
| pip freeze > pip-freeze.txt | |
| - name: Test with pytest | |
| run: | | |
| python setup.py build_ext --inplace | |
| pip install -e . | |
| python -m pytest |