2404 stack 4 model definition accuracy #1771
Workflow file for this run
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
| name: Test Run (PyTest, PHPUnittest) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - db_system: mysql | |
| - db_system: postgres | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Start Hashtopolis server | |
| uses: ./.github/actions/start-hashtopolis | |
| with: | |
| db_system: ${{ matrix.db_system }} | |
| - name: Give Apache permissions on necessary directories # for the tests, only src/files and src/inc/utils/locks seem necessary | |
| run: docker exec -u root hashtopolis-server-dev bash -c "chown -R www-data:www-data /var/www/html/src && chmod -R g+w /var/www/html/src" | |
| - name: PHPUnittest Run | |
| run: docker exec -w /var/www/html/ hashtopolis-server-dev php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --display-warnings --display-deprecations ./ci/phpunit/ | |
| - name: Test with pytest | |
| run: docker exec -w /var/www/html/ci/apiv2 hashtopolis-server-dev pytest | |
| - name: Test if pytest is removing all test objects | |
| run: docker exec -w /var/www/html/ci/apiv2 hashtopolis-server-dev python3 htcli.py run delete-test-data | |
| - name: Show docker log files | |
| if: ${{ always() }} | |
| run: docker logs hashtopolis-server-dev | |
| - name: Show installed files tree in /var/www/html | |
| if: ${{ always() }} | |
| run: docker exec hashtopolis-server-dev find /var/www/html | |
| realworld: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - db_system: mysql | |
| - db_system: postgres | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Start Hashtopolis server with real-world test data | |
| uses: ./.github/actions/start-hashtopolis | |
| with: | |
| db_system: ${{ matrix.db_system }} | |
| test_dataset: realworld | |
| - name: Give Apache permissions on necessary directories | |
| run: docker exec -u root hashtopolis-server-dev bash -c "chown -R www-data:www-data /var/www/html/src && chmod -R g+w /var/www/html/src" | |
| - name: Test with pytest on real-world test data | |
| run: docker exec -w /var/www/html/ci/apiv2 -e HASHTOPOLIS_TEST_DATASET=realworld hashtopolis-server-dev pytest | |
| - name: Show docker log files | |
| if: ${{ always() }} | |
| run: docker logs hashtopolis-server-dev |