Skip to content

Fixed Workflow and Added Tests #2

Fixed Workflow and Added Tests

Fixed Workflow and Added Tests #2

Workflow file for this run

name: Tests
on:
push:
branches: [main, master]
paths-ignore:
- "exhibitors/locale/**"
pull_request:
branches: [main, master]
paths-ignore:
- "exhibitors/locale/**"
jobs:
test:
runs-on: ubuntu-latest
name: Tests
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y gettext
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]" psycopg2-binary pytest
- name: Run tests for exhibitors plugin
run: pytest tests --reruns 3