Merge pull request #442 from P2GX/add-release-action #998
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 | |
| on: | |
| push: | |
| branches: [ develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| run-ci: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Initialize Python | |
| uses: actions/setup-python@v4.3.1 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package | |
| run: python3 -m pip install --editable .[test] | |
| - name: Run tests | |
| env: | |
| MPLBACKEND: "Agg" | |
| GPSEA_CACHEDIR: ".gpsea_ci_cachedir" | |
| run: pytest | |
| formatting: | |
| name: Check code formatting | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Initialize Python 3.12 | |
| uses: actions/setup-python@v4.3.1 | |
| with: | |
| python-version: "3.12" | |
| - name: Install package | |
| run: python3 -m pip install --editable .[test] | |
| - name: Check formatting | |
| run: ruff format --check |