Skip to content

Pawel/improve ci

Pawel/improve ci #4

Workflow file for this run

name: end-to-end tests
on:
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint and format with ruff
run: |
ruff check
- name: Type check
run: |
mypy .
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
env:
CHAINLIT_API_URL: ${{ secrets.CHAINLIT_API_URL }}
CHAINLIT_API_KEY: ${{ secrets.CHAINLIT_API_KEY }}
run: |
pytest -m e2e