Skip to content

Bump @babel/traverse from 7.20.13 to 7.23.2 in /cado/ui #65

Bump @babel/traverse from 7.20.13 to 7.23.2 in /cado/ui

Bump @babel/traverse from 7.20.13 to 7.23.2 in /cado/ui #65

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
steps:
- uses: actions/checkout@v3
- name: Python ${{ matrix.python-version }} Setup
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install poetry
if [ -d /poetryenvs ]; then rm -rf ~/poetryenvs; fi
poetry config virtualenvs.path ~/poetryenvs
poetry install
- name: Run flake8
run: |
poetry run pflake8 cado --config pyproject.toml
poetry run pflake8 tests --config pyproject.toml
- name: Run pylint
run: |
poetry run pylint cado --rcfile pyproject.toml
- name: Run mypy
run: |
poetry run mypy cado --config pyproject.toml
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: cado/ui/yarn.lock
- name: Install UI dependencies
run: yarn install
working-directory: cado/ui
- name: Build UI bundle
run: yarn build
working-directory: cado/ui
- name: Run pytest
run: |
poetry run pytest tests --cov=cado --cov-report=html --cov-report=xml --cov-branch
- name: Upload HTML Coverage
uses: actions/upload-artifact@v2
with:
name: cado-coverage-html
path: htmlcov
- name: Upload XML Coverage
uses: actions/upload-artifact@v2
with:
name: cado-coverage-xml
path: coverage.xml
- name: Check Coverage
run: |
poetry run covcheck coverage.xml --config pyproject.toml