Test #156
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: Test | |
| on: | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| run_tests: | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Ert Ubuntu dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libegl1 | |
| - name: Install fmu-dataio | |
| run: | | |
| pip install pip -U | |
| pip install -e .[dev] | |
| - name: Install fmu-datamodels | |
| run: | | |
| pip install \ | |
| "fmu-datamodels @ git+https://github.com/equinor/fmu-datamodels.git" | |
| # fmu-sumo-uploader blocked by OpenVDS on Python 3.12 | |
| - name: Install fmu-sumo-uploader for Python 3.11 | |
| if: matrix.python-version == '3.11' | |
| run: pip install \ | |
| "fmu-sumo-uploader @ git+https://github.com/equinor/fmu-sumo-uploader.git" | |
| - name: Full test | |
| run: | | |
| pytest -n auto -v --cov --cov-report term-missing |