diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..566967c --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,28 @@ +name: Code Coverage + +on: [push, pull_request] + +jobs: + build-python3-linux: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install coverage + pip install pytest + - name: Test with pytest + run: | + coverage run -m pytest -v AL/omx/tests + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/AL/omx/tests/test_omxundo.py b/AL/omx/tests/test_omxundo.py index c5f7ce2..5d280b3 100644 --- a/AL/omx/tests/test_omxundo.py +++ b/AL/omx/tests/test_omxundo.py @@ -17,7 +17,6 @@ import unittest from AL.omx.utils._stubs import cmds -from maya import cmds from AL import omx from AL.omx.utils import _contexts as omu_contexts diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..6abfd18 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,6 @@ +ignore: + - "docs" + - "__init__.py" + - "reformat.py" + - "setup.py" +