Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .github/workflows/coverage_test.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/install_script_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v7

- name: Test Bash installer
- name: Check Bash installer syntax

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Manual run skips installer behavior tests

When a maintainer manually dispatches the install-script workflow to validate Bash installer behavior, the workflow runs only PowerShell tests and a Bash syntax check; it no longer runs tests/test_install_script.py. Dispatching this workflow does not dispatch unit_tests.yml, so it can pass without exercising Bash installer behavior.

Run the behavioral test on manual dispatch, or make the install workflow dispatch the unit-test workflow.

Prompt for AI agents
In `.github/workflows/install_script_test.yml` at line 50:

**Manual run skips installer behavior tests**

When a maintainer manually dispatches the install-script workflow to validate Bash installer behavior, the workflow runs only PowerShell tests and a Bash syntax check; it no longer runs `tests/test_install_script.py`. Dispatching this workflow does not dispatch `unit_tests.yml`, so it can pass without exercising Bash installer behavior.

Run the behavioral test on manual dispatch, or make the install workflow dispatch the unit-test workflow.

shell: bash
run: |
/bin/bash -n docs/public/install.sh
python3 tests/test_install_script.py
run: /bin/bash -n docs/public/install.sh
14 changes: 13 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ jobs:
run: test -x /usr/bin/sandbox-exec

- name: Run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
chmod +x scripts/run_pytests_ci.sh
bash ./scripts/run_pytests_ci.sh ./tests
if [ "${{ runner.os }}" = "Linux" ]; then
bash ./scripts/run_pytests_ci.sh ./tests --cov=astrbot --cov-report=xml
else
bash ./scripts/run_pytests_ci.sh ./tests
fi

- name: Upload coverage
if: runner.os == 'Linux' && github.repository == 'AstrBotDevs/AstrBot'
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
Loading