diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca1e5f3..55c1e03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,3 +121,46 @@ jobs: - name: Run unit tests run: | pytest + + coveralls: + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Display Python version + run: python -c "import sys; print(sys.version)" + + - name: Display installed python package versions + run: | + pip list || : + + - name: Install coverage + run: | + pip install coverage + + - name: Install pytest + run: | + pip install pytest + + - name: Install build dependencies + run: | + pip install -r requirements.txt + + - name: Display installed python package versions + run: | + pip list || : + + - name: Run unit tests with coverage + run: | + coverage run -m pytest + + - name: Report Coveralls + run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 3959358..cedc257 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/.DS_Store __pycache__ docs/build +.coverage