Skip to content

change load_module() to use stream intead of file path #62

change load_module() to use stream intead of file path

change load_module() to use stream intead of file path #62

Workflow file for this run

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