chore: update submodule #234
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
name: Run Tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
# #no-ci in the commit log flags commit we don't want CI-validated | |
if: ${{ !contains(github.event.head_commit.message, '#no-ci') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Run image | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: "1.3.0" | |
- name: Install dependencies | |
run: | | |
poetry install | |
poetry run pip install coverage | |
- name: Run tests | |
run: | | |
poetry run coverage run mothertongues/tests/run.py dev | |
poetry run coverage xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false # too many upload errors to keep "true" |