feat: add uv for project management and publishing workflow to pypi #57
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 | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| bigym: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxml2-utils xvfb libgl1-mesa-dev libgl1-mesa-glx libosmesa6-dev | |
| - name: Install dependencies | |
| run: uv sync --extra dev | |
| - name: Run pre-commit checks | |
| run: uv run pre-commit run --all-files | |
| - name: Start Xvfb | |
| run: | | |
| Xvfb :99 -ac & | |
| echo "DISPLAY=:99" >> $GITHUB_ENV | |
| - name: Run tests | |
| env: | |
| DISPLAY: :99 | |
| run: uv run pytest tests/ |