Skip to content

ci: change testing directory #13

ci: change testing directory

ci: change testing directory #13

Workflow file for this run

on: ["push", "pull_request"]
name: Update Test Coverage
permissions:
contents: read
jobs:
coveralls:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
pip install -r src/requirements.txt
pip install coveralls
pip install pytest
- name: Generate Coverage Report
env:
PYTHONPATH: ./src
run: |
coverage run -m pytest src/tests
coverage xml
- name: Upload Report to Coveralls
env:
GITHUB_TOKEN: ${{ secrets. GITHUB_TOKEN }}
run: coveralls
- name: Upload Report to Codacy
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml