UIP-49 Fix report fetch test #18
Workflow file for this run
This file contains 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
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
jobs: | |
narrative_service_build_and_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ['3.12'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout git repo | |
uses: actions/checkout@v3 | |
- name: Set up python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: install prerequisites | |
shell: bash -l {0} | |
run: | | |
cat requirements.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 pip install | |
cat requirements-dev.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 pip install | |
- name: Run tests | |
shell: bash -l {0} | |
run: | | |
sh test/run_tests.sh | |
- name: Send to Codecov | |
id: send_to_codecov | |
uses: codecov/codecov-action@v3 | |
continue-on-error: true | |
with: | |
files: ./python-coverage/coverage.xml | |
fail_ci_if_error: true |