Went back to python version via uv #699
Workflow file for this run
This file contains 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
# This workflow will upload a Python Package using Twine when a release is created | |
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Upload Python Package | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install the latest version of uv and set the python version | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
cache-dependency-glob: | | |
**/requirements*.txt | |
**/pyproject.toml | |
- name: Set up Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Create venv | |
run: | | |
uv venv | |
- name: Install dependencies | |
run: | | |
if [ -f requirements.txt ]; then uv pip install -r requirements.txt; fi | |
if [ -f requirements-dev.txt ]; then uv pip install -r requirements-dev.txt; fi | |
- name: Lint with mypy | |
run: | | |
uv run mypy --no-strict-optional --ignore-missing-imports --explicit-package-bases geneticengine | |
- name: Check install | |
run: | | |
uv pip install -e . | |
- name: Build package | |
run: uv build | |
- name: Publish | |
run: uv publish -t ${{ secrets.PYPI_API_TOKEN }} |