Skip to content

Add GitHub action to run check_sentinel py tests. #1

Add GitHub action to run check_sentinel py tests.

Add GitHub action to run check_sentinel py tests. #1

name: check_sentinel Python Tests
on:
push:
branches: [ main, master ]
paths:
- 'check_sentinel/**'
pull_request:
branches: [ main, master ]
paths:
- 'check_sentinel/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.12]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
working-directory: check_sentinel
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run tests
working-directory: check_sentinel
run: |
pytest tests/