Skip to content

2024 update

2024 update #231

Workflow file for this run

name: linux
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main, mig_dev, t21-main ]
pull_request:
branches: [ main, t21-main ]
release:
types:
- published
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
pytest:
name: ${{ matrix.case.os }} py${{ matrix.case.python-version }} ${{ matrix.case.name }}
runs-on: ${{ matrix.case.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, ] # macos, windows] # Only Linux currently.
case:
- python-version: 3.8
name: basic
os: ubuntu
env:
DISPLAY: ':99.0'
PYVISTA_OFF_SCREEN: 'True'
ALLOW_PLOTTING: true
SHELLOPTS: 'errexit:pipefail'
OS: ${{ matrix.case.os }}
PYTHON: ${{ matrix.case.python-version }}
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.case.python-version }}
- uses: actions/checkout@v2
- name: Setup Headless Display
run: |
sudo apt-get update && sudo apt-get install libgl1-mesa-glx xvfb -y
sudo apt-get install -y xvfb
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements_all.txt
- name: Test with pytest
run: pytest --cov=subsurface