diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 437fcc4..28e964f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,20 +24,26 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r AthenaMyst_Host/requirements.txt || true + pip install -e . + pip install pytest pytest-cov - name: Install Node dependencies run: | - if [ -f package.json ]; then npm install; fi + if [ -f package.json ]; then npm ci; fi - name: Lint Python run: | pip install flake8 - flake8 . || true + flake8 . - name: Lint Node run: | - if [ -f package.json ]; then npx eslint . || true; fi + if [ -f package.json ]; then npx eslint .; fi - name: Run Python tests run: | - python -m pytest AthenaMyst_Host/tests --maxfail=10 --disable-warnings -v || true + python -m pytest \ + --maxfail=10 \ + --disable-warnings \ + -v \ + --cov=. \ + --cov-report=html || true - name: Run Node tests run: | if [ -f package.json ]; then npm test || true; fi @@ -45,4 +51,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-report - path: htmlcov/ \ No newline at end of file + path: htmlcov/