Merge pull request #93 from PSNAppz/2.0 #109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test and coverage | |
| on: | |
| pull_request: | |
| push: | |
| workflow_dispatch: | |
| concurrency: | |
| group: check-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test with ${{ matrix.py }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| py: | |
| - "3.10" | |
| os: | |
| - ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup python for test ${{ matrix.py }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.py }} | |
| - name: Install test requirements | |
| run: | | |
| python -m pip install -r test-requirements.txt | |
| python -m pip install -e ./openg2p-g2p-bridge-models | |
| python -m pip install -e ./openg2p-g2p-bridge-api | |
| python -m pip install -e ./openg2p-g2p-bridge-bank-connectors | |
| python -m pip install -e ./openg2p-g2p-bridge-celery-beat-producers | |
| python -m pip install -e ./openg2p-g2p-bridge-celery-workers | |
| - name: Run test suite | |
| run: | | |
| pytest --cov-branch --cov-report=term-missing --cov=openg2p_g2p_bridge_api --cov=tests openg2p-g2p-bridge-api | |
| pytest --cov-branch --cov-report=term-missing --cov=openg2p_g2p_bridge_bank_connectors --cov=tests openg2p-g2p-bridge-bank-connectors --cov-append | |
| pytest --cov-branch --cov-report=term-missing --cov=openg2p_g2p_bridge_celery_beat_producers --cov=tests openg2p-g2p-bridge-celery-beat-producers --cov-append | |
| pytest --cov-branch --cov-report=term-missing --cov=openg2p_g2p_bridge_celery_workers --cov=tests openg2p-g2p-bridge-celery-workers --cov-append | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |