refactor: act/obs interface #59
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: Python | |
| on: | |
| workflow_call: | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - ".github/workflows/**" | |
| push: | |
| branches: | |
| - master | |
| release: | |
| types: [ published ] | |
| jobs: | |
| pipeline: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| cache: "pip" | |
| - name: Install library | |
| run: python -m pip install -e . | |
| - name: Install linting and formatting dependencies | |
| run: python -m pip install 'pip>=25.1' && python -m pip install --group dev | |
| - name: Check formatting | |
| run: make checkformat | |
| # - name: Check linting | |
| # run: make lint | |
| - name: Tests | |
| run: make test | |
| - name: Build sdist and wheel | |
| run: python -m build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-package-distributions | |
| path: dist/ |