Skip to content

yay tests

yay tests #123

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '00 4 * * *' # daily at 4AM
jobs:
run_tests:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.host-os }}
strategy:
matrix:
host-os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10"]
fail-fast: false
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Install dependencies with pip
run: |
pip install .
pip install -r requirements-dev.txt
pip list
- name: Test the code
run: |
set -vxuo pipefail
pytest -s -vv