Add support for the Python Environment Extension (#1035) #1480
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: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: {} | |
| jobs: | |
| ci: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| activate-environment: true | |
| - name: Install dependencies | |
| run: just install | |
| - name: Run checks | |
| run: just check | |
| - name: Run tests | |
| run: just test | |
| # ts-tests: | |
| # name: TypeScript Tests | |
| # runs-on: ubuntu-latest | |
| # env: | |
| # UV_SYSTEM_PYTHON: 1 | |
| # steps: | |
| # - uses: extractions/setup-just@v2 | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # - uses: actions/setup-python@v5 | |
| # with: | |
| # python-version: "3.8" | |
| # - uses: hynek/setup-cached-uv@v1 | |
| # - uses: actions/checkout@v4 | |
| # - name: Install dependencies | |
| # run: | | |
| # just setup | |
| # npm ci | |
| # shell: bash | |
| # - name: Compile tests | |
| # run: npm run pretest | |
| # shell: bash | |
| # - name: Run tests | |
| # run: xvfb-run npm run tests | |
| # shell: bash |