hf-qa-demo / .github /workflows /tests-integration.yml
KonradSzafer's picture
initial commit
c69cba4
raw
history blame
793 Bytes
name: CI
on:
push:
branches:
- main
- feature/**
- issue/**
jobs:
build:
strategy:
matrix:
python-version: [3.11]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --no-cache-dir -r requirements.txt
cp config/.env.example config/.env
- name: Run unit tests
run: |
pytest -o "testpaths=tests" --noconftest