Update README.md #59
This file contains hidden or 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
| # GitHub Actions workflow for building and testing Delve on push events | |
| # This workflow runs on both Windows and Ubuntu runners | |
| # It builds the project, runs the test suite, and provides basic notifications | |
| name: Build and Test Delve | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| build-and-test-windows: | |
| name: Build and Test on Windows | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24.4.1' # or your required version | |
| - name: Check npm location | |
| run: where npm | |
| shell: cmd | |
| - name: Print PATH | |
| run: echo %PATH% | |
| shell: cmd | |
| - name: Run bootstrap script | |
| run: python bootstrap.py all | |
| shell: cmd | |
| - name: Prepare settings and urls | |
| run: | | |
| copy build\assemble\delve\example-settings.py build\assemble\delve\settings.py | |
| copy build\assemble\delve\example-urls.py build\assemble\delve\urls.py | |
| - name: Run test suite | |
| shell: cmd | |
| run: | | |
| cd build\assemble | |
| dlv.bat test | |
| build-and-test-linux: | |
| name: Build and Test on Ubuntu | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install MariaDB Connector/C | |
| run: sudo apt-get update && sudo apt-get install -y libmariadb-dev | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run bootstrap script | |
| run: python bootstrap.py all | |
| - name: Prepare settings and urls | |
| run: | | |
| cp build/assemble/delve/example-settings.py build/assemble/delve/settings.py | |
| cp build/assemble/delve/example-urls.py build/assemble/delve/urls.py | |
| - name: Run test suite | |
| run: | | |
| cd build/assemble | |
| ./dlv test | |
| # Notifications: | |
| # - GitHub will show pass/fail in the UI and send email to repository watchers if enabled. | |
| # - For custom notifications, add steps using actions for Slack, Discord, etc. |