optar_infra/optar/.github/workflows/pytest.yml

39 lines
853 B
YAML

name: 'Pytest'
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
pytest:
name: 'Pytest'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
# Checkout the repository to the GitHub Actions runner
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest==8.2.2
- name: run test
run: |
pytest tests/watcher_test.py