Add missing types.ts #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: (Playbooks package) Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
cd python/packages/playbooks | |
poetry install | |
- name: (Playbooks package) Run tests | |
run: | | |
cd python/packages/playbooks | |
poetry run pytest tests/ --cov=src/playbooks --cov-report=xml | |
- name: (Website API) Install dependencies | |
run: | | |
cd website/api | |
pip install -r requirements.txt | |
pip install pytest pytest-cov | |
- name: (Website API) Run tests | |
run: | | |
cd website/api | |
pytest tests/ --cov=. --cov-report=xml -v | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: (Website Frontend) Install dependencies | |
run: | | |
cd website/frontend | |
npm ci | |
- name: (Website Frontend) Run tests | |
run: | | |
cd website/frontend | |
npm test -- --coverage | |
- name: Upload Frontend coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: playbooks-ai/playbooks | |
file: ./website/frontend/coverage/coverage-final.json | |
fail_ci_if_error: true | |
flags: website-frontend | |
- name: Upload Playbooks package coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: playbooks-ai/playbooks | |
file: ./python/packages/playbooks/coverage.xml | |
fail_ci_if_error: true | |
flags: playbooks-package | |
- name: Upload API coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: playbooks-ai/playbooks | |
file: ./website/api/coverage.xml | |
fail_ci_if_error: true | |
flags: website-api |