From 97fed62f1a9d08ee2de02fa630dfb345be7803d5 Mon Sep 17 00:00:00 2001 From: Lilitu~ <35093314+EsKaye@users.noreply.github.com> Date: Mon, 28 Jul 2025 07:49:30 -0400 Subject: [PATCH] chore(ci): improve workflow reliability --- .github/workflows/ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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/