Skip to content

Tw/timeseries

Tw/timeseries #72

name: Pytests
on: pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
python-version: [3.9]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 1
- uses: nanasess/setup-chromedriver@v2
- name: Install Chrome Driver
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Install Conda environment from environment.yml
uses: mamba-org/setup-micromamba@main
with:
environment-file: environment.yml
cache-environment: true
init-shell: bash
- name: Install Package
shell: bash -l {0}
run: |
python -m pip install .[dev]
- name: Run Pytest
shell: bash -l {0}
run: |
python -m pytest -v --disable-warnings