Bump version to 0.5.0 #111
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: Python package | |
| on: | |
| push: | |
| branches: [ "main", "develop" ] | |
| pull_request: | |
| branches: [ "main", "develop" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["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: Check initial disk usage | |
| run: df -h | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev,test]" --no-cache-dir | |
| - name: Clean up pip cache | |
| run: pip cache purge | |
| - name: Check disk usage after install | |
| run: df -h | |
| - name: Lint with ruff | |
| run: | | |
| ruff check sct/ tests/ | |
| - name: Test with pytest and coverage | |
| run: | | |
| pytest tests/ --cov=sct --cov-report=xml -v |