diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 669f22b..654b735 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -18,7 +18,7 @@ jobs: python -m pip install --upgrade pip sudo apt-get -y install python3-cffi python3-brotli libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 pip install --upgrade pytest pytest-cov coveralls - pip install PyPDF2 matplotlib libsass + pip install pypdf matplotlib libsass - name: Install run: | pip install -e . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e2736b0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -python: - - "3.9" -# command to install dependencies -before_install: - # for WeasyPrint: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#ubuntu-20-04 - - sudo apt-get -y install python3-cffi python3-brotli libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 - - pip install --upgrade pip - - pip install --upgrade pytest pytest-cov coveralls PyPDF2 matplotlib libsass - - pip install -e . -# command to run tests -script: - - python -m pytest -v --cov pdf_reports --cov-report term-missing - -after_success: - - coveralls diff --git a/tests/test_basics.py b/tests/test_basics.py index 12257ae..72dff5b 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -5,7 +5,7 @@ matplotlib.use("Agg") import matplotlib.pyplot as plt -from PyPDF2 import PdfReader +from pypdf import PdfReader def test_pug_to_html():