final commit #1
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 CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.10, 3.11, 3.12] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Install build tools | |
| run: python -m pip install --upgrade hatchling build | |
| - name: Install package | |
| run: python -m pip install -e . | |
| - name: Run tests | |
| run: python -m pytest | |
| - name: Check CLI help | |
| run: | | |
| python -m atoffice_shell --help | |
| atoffice-shell --help | |
| - name: Build wheel | |
| run: python -m build --wheel |