diff options
| author | adamjanovsky | 2022-04-04 18:01:25 +0200 |
|---|---|---|
| committer | GitHub | 2022-04-04 18:01:25 +0200 |
| commit | b0e4e9ed1a25f163dab45980cc5a32bcb0dacee9 (patch) | |
| tree | 052eb8b6bdae4ac3c9ff1c89a5e469bce8ba01c6 /.github/workflows | |
| parent | 7df07064bb0deb4deb51d7cf6ad3e9717a4a5edc (diff) | |
| download | sec-certs-b0e4e9ed1a25f163dab45980cc5a32bcb0dacee9.tar.gz sec-certs-b0e4e9ed1a25f163dab45980cc5a32bcb0dacee9.tar.zst sec-certs-b0e4e9ed1a25f163dab45980cc5a32bcb0dacee9.zip | |
Refactor/pdftotext as library (#183)
- Update Docker Ubuntu to 22.04
- Test pipeline now installs fresh Poppler
- Poppler-utils package no longer needed
- Paragraph on project dependencies added to CONTRIBUTING.md
- Pdftotext is no longer called with subprocess call, but API is leveraged instead
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/lint.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/tests.yml | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0a625f68..d49b7224 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,6 +11,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: '3.9' + - name: Install external dependencies + run: sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev -y - name: Install python dependencies run: pip install -r requirements.txt - name: Install mypy and types diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f8c7a328..84c8bc12 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,12 +2,22 @@ name: Tests on: push: workflow_dispatch: +env: + DEBIAN_FRONTEND: noninteractive + jobs: run-test: runs-on: ubuntu-latest steps: - - run: sudo apt-get install poppler-utils + - name: Install Poppler 21.06 + run: | + sudo apt-get update + sudo apt-get install -y software-properties-common + sudo apt-get update + sudo add-apt-repository ppa:hlprasu/poppler + sudo apt-get update + sudo apt-get install -y build-essential libpoppler-cpp-dev pkg-config python3-dev - uses: actions/checkout@v2 - name: Setup python uses: actions/setup-python@v2 @@ -21,4 +31,4 @@ jobs: pip install pytest-cov pip install ".[dev,test]" - name: Run tests - run: pytest --cov sec_certs + run: pytest --cov=sec_certs tests |
