diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 00000000..d3e4eaea --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,42 @@ +name: Test + +on: + workflow_dispatch: + push: + branches: + - "*.*.*" + - "main" + - "master" + pull_request: + branches: "*" + +permissions: + contents: read + +jobs: + test: + name: Test Changes + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run pytest with coverage + run: | + pytest --cov=. --cov-report=xml --cov-report=term + + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@v2 + continue-on-error: true \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 5ec25a4b..628fb739 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,5 @@ requests_aws4auth pandas xlsxwriter prefect -pytest \ No newline at end of file +pytest +pytest-cov \ No newline at end of file