Switch to uv #680
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 package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: arc-runner-dink | |
| name: python test | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Setup environment | |
| run: | | |
| python -m pip install uv==0.8.5 | |
| uv sync | |
| echo "UV_FLAGS=--exact --frozen" >> $GITHUB_ENV | |
| - name: Check formatting | |
| run: | | |
| make --trace format | |
| - name: Check linting | |
| run: | | |
| make --trace lint | |
| - name: Check typing | |
| run: | | |
| make --trace mypy | |
| - name: Run tests | |
| run: | | |
| mongo_cid=$(docker run -d -p 27017:27017 mongo) | |
| TEST_FLAGS=--with_mongodb make --trace test | |
| docker kill $(mongo_cid) | |
| - name: Test build | |
| run: | | |
| make --trace build | |
| pip install dist/enochecker3-*.tar.gz |