WIP: Fix pre-commit #95
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: Install software | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| install_main_only_with_pip3: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Install with pip3 - no extras | |
| run: | | |
| uv run pip install . | |
| uv run pip show syncall | |
| install_extras_with_pip3: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.10", "3.11", "3.12"] | |
| # use python-extra AND executable to tests its imports | |
| # https://stackoverflow.com/questions/66025220/paired-values-in-github-actions-matrix | |
| python-extra: | |
| [ | |
| "tw,google,notion,gkeep,asana,caldav", | |
| "tw", | |
| "google", | |
| "notion", | |
| "gkeep", | |
| "asana", | |
| "caldav", | |
| ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Install with pip3 - with ${{ matrix.python-extra }} | |
| run: | | |
| uv run pip install ".[${{ matrix.python-extra }}]" | |
| uv run pip show syncall |