expose annotators submodule as part of the public API #73
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: Unit tests | |
| on: [push] | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ['3.9'] | |
| poetry-version: [1.8.3] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| env: | |
| OS: ${{ matrix.os }} | |
| PYTHON: ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Setup Python | |
| uses: actions/setup-python@master | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run image | |
| uses: abatilo/[email protected] | |
| with: | |
| poetry-version: ${{ matrix.poetry-version }} | |
| - name: Installing package | |
| run: poetry install | |
| - name: Generate coverage report | |
| run: | | |
| poetry run pytest --cov=psite_annotation --cov-report xml --cov-report term -s tests/unit_tests | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./coverage/reports/ | |
| env_vars: OS,PYTHON | |
| fail_ci_if_error: true | |
| files: ./coverage.xml,!./cache | |
| flags: unittests | |
| name: codecov-umbrella | |
| verbose: true |