Simplify logic and use more idiomatic pandas #1744
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: 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", "3.13" ] | |
| 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 }}" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: pyproject.toml | |
| python-version: "${{ matrix.python-version }}" | |
| - name: Install Ubuntu dependencies | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libegl1 | |
| shell: bash | |
| - 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 |