-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (41 loc) · 1.36 KB
/
run-examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Run Examples
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: |
**/requirements*.txt
**/pyproject.toml
- 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: Run Examples Bash
run: |
source .venv/bin/activate
bash run_examples.sh