fix unit tests for new load_module func signature #64
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: "CI tests" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install cppunit and lcov | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libcppunit-dev | |
| sudo apt-get install -y lcov | |
| - name: Run tests | |
| run: | | |
| cd test | |
| make coverage | |
| - name: Archive test coverage artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: test/coverage.txt | |
| - name: Upload coverage reports to Codecov | |
| if: github.event_name == 'push' || github.event.pull_request.merged == true | |
| uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 #v4.6.0 | |
| with: | |
| directory: test | |
| file: coverage.txt | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload coverage reports to Codacy | |
| if: github.event_name == 'push' || github.event.pull_request.merged == true | |
| uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 #v1.3.0 | |
| with: | |
| project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
| coverage-reports: test/coverage.txt |