Use uv instead of pip in github actions #1587
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: "*" | |
pull_request: | |
env: | |
ERT_SHOW_BACKTRACE: 1 | |
UV_SYSTEM_PYTHON: 1 | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11", "3.12" ] | |
os: [ ubuntu-latest ] | |
include: | |
- python-version: "3.12" | |
os: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
cache: "pip" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
cache-dependency-glob: pyproject.toml | |
- name: Install test dependencies | |
run: | | |
uv pip install ".[test]" | |
- name: "Run tests" | |
run: pytest tests -n logical --durations 5 --ert-integration | |
- name: "Run doctests on fmudesign" | |
run: pytest ./src/semeio/fmudesign/ --doctest-modules -v |