Skip to content

Create a testing pipeline #8

Create a testing pipeline

Create a testing pipeline #8

name: Build And Run Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.11.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run tests with pytest
env:
GITHUB_TOKEN: "fake_token"
OPENAI_API_KEY: "fake_key"
run: |
pytest --version
pip freeze | grep pytest
pytest --maxfail=5 --disable-warnings --tb=short --log-cli-level=DEBUG