Test #247
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: Test | |
on: | |
workflow_call: # Enables workflow to be called from another workflow. | |
schedule: | |
# Run CI every night and check that tests are working with the latest dependencies. | |
- cron: '0 0 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.11'] | |
env: | |
PYTHONPATH: ${{ github.workspace }}/install/lib/python${{ matrix.python-version }}/site-packages:${{ github.workspace }}/install/lib/python${{ matrix.python-version }}/dist-packages | |
steps: | |
- name: Checkout commit locally | |
uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry==2.0.0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install dependencies | |
run: | | |
poetry install --with dev -E ert --no-interaction | |
poetry show | |
- name: Run tests in multiprocess | |
run: poetry run pytest tests/ -n auto |