Skip to content

Commit

Permalink
Print version in Pytest header
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk committed Mar 28, 2021
1 parent ee97202 commit c36ad94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[run]
plugins = Cython.Coverage
omit =
tests
packing
data_file = .coverage/data
source = manimpango

Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
test:
name: ${{ matrix.os }} - ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
env:
MACOSX_DEPLOYMENT_TARGET: 10.9
strategy:
fail-fast: false
matrix:
Expand All @@ -27,9 +25,6 @@ jobs:
if: runner.os == 'macOS'
run: |
brew install cairo
brew uninstall --ignore-dependencies brotli
brew uninstall --ignore-dependencies pcre
brew uninstall --ignore-dependencies libpng
echo "LD_LIBRARY_PATH=$HOME/pangoprefix/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=$HOME/pangoprefix/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
- name: Set ENV
Expand All @@ -41,9 +36,8 @@ jobs:
id: cache-pango
uses: actions/cache@v2
with:
path: |
/home/runner/pangobuild
key: ${{ runner.os }}-${{ hashFiles('packing/build_pango_tests.sh') }}
path: ~/pangoprefix
key: ${{ hashFiles('packing/build_pango_tests.sh') }}-${{ runner.os }}
- name: Install System Dependency
if: steps.cache-pango.outputs.cache-hit != 'true'
run: |
Expand All @@ -59,7 +53,6 @@ jobs:
python setup.py sdist
pip install .
pip install manim
python -c "import manimpango;print(manimpango.cairo_version(),manimpango.pango_version())"
pytest
- name: Coverage
run: |
Expand Down
9 changes: 9 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import manimpango


def pytest_report_header(config):
return (
f"ManimPango version {manimpango.__version__}\n"
f"Pango version {manimpango.pango_version()}\n"
f"Cairo version {manimpango.cairo_version()}"
)

0 comments on commit c36ad94

Please sign in to comment.