Migrate from poetry to uv
#199
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: 'Build and Test PR' | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| # Latest code is always prioritized to run per workflow per branch. | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| name: 'Poetry: Build and Test' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Check out code' | |
| uses: actions/checkout@v3 | |
| - name: 'Install Nix/Cachix' | |
| uses: cachix/install-nix-action@v31.7.0 | |
| with: | |
| install_url: https://releases.nixos.org/nix/nix-2.32.0/install | |
| extra_nix_config: | |
| access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
| - uses: cachix/cachix-action@v12 | |
| with: | |
| name: k-framework | |
| signingKey: '${{ secrets.CACHIX_PUBLIC_TOKEN }}' | |
| skipPush: true | |
| - name: 'Install Python' | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: 'Get uv release' | |
| id: uv_release | |
| run: | | |
| echo uv_version=$(cat deps/uv_release) >> "${GITHUB_OUTPUT}" | |
| - name: 'Install uv' | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: ${{ steps.uv_release.outputs.uv_version }} | |
| - name: 'Run code quality checks' | |
| run: make | |
| - name: 'Run pyupgrade' | |
| run: make pyupgrade | |
| - name: 'Run unit tests' | |
| run: make cov-unit | |
| - name: 'Kup list works' | |
| run: uv run kup list | |
| - name: 'Build via Nix' | |
| run: nix build |