Skip to content

Update build system to support latest upstream spt3g #11

Update build system to support latest upstream spt3g

Update build system to support latest upstream spt3g #11

Workflow file for this run

name: Run Tests with Docker
# on: workflow_dispatch
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build docker images
run: |
docker compose build
- name: Test with pytest within a docker container
run: |
docker run -v $PWD:/coverage --rm so3g sh -c "COVERAGE_FILE=/coverage/.coverage.docker python3 -m pytest --cov /usr/lib/python3/dist-packages/so3g/ test/"
- name: Report test coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install coveralls
coverage combine
coverage report
coveralls --service=github