Skip to content

Merge pull request #22 from Adam-Boesky/Adam-Boesky-patch-8 #25

Merge pull request #22 from Adam-Boesky/Adam-Boesky-patch-8

Merge pull request #22 from Adam-Boesky/Adam-Boesky-patch-8 #25

Workflow file for this run

name: coverage
on: push
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: "Install python dependencies"
run: |
pip3 install pytest
pip3 install pytest-cov
- name: "Get coverage"
run: |
COVERAGE=$(pytest --cov Moby_Land | grep 'TOTAL' | awk '{print $NF}' | tr -d '%')
if [ "$COVERAGE" -gt 89 ]; then
echo "success"
else
echo "failure"
fi