aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/tests.yml
blob: 06861ed0170c29a5381af686d0e884cab106372d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Tests
on:
  push:
  workflow_dispatch:
env:
  DEBIAN_FRONTEND: noninteractive

jobs:
  run-test:
    runs-on: ubuntu-latest
    steps:
      - 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
        with:
          python-version: "3.8"
      - name: Install python dependencies
        run: pip install -r requirements/requirements.txt
      - name: Download spacy language model
        run: python -m spacy download en_core_web_sm
      - name: Install pytest and package
        run: |
          pip install -r requirements/test_requirements.txt
      - name: Run tests
        run: pytest --cov=sec_certs tests