aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/tests.yml
blob: 316e8679c6d86ca1edc425eddf02694ffcbaf9c6 (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
name: Tests
on:
  push:
  workflow_dispatch:
env:
  DEBIAN_FRONTEND: noninteractive

jobs:
  test:
    runs-on: ubuntu-22.04
    steps:
      - name: Install Poppler
        run: sudo apt-get install -y build-essential libpoppler-cpp-dev pkg-config python3-dev
      - uses: actions/checkout@v3
      - name: Setup python
        uses: actions/setup-python@v4
        with:
          python-version: "3.8"
      - name: Install python dependencies
        run: |
          pip install -r requirements/requirements.txt
          pip install -r requirements/test_requirements.txt
      - name: Install sec-certs
        run: |
          pip install -e .
          python -m spacy download en_core_web_sm
      - name: Run tests
        run: pytest --cov=sec_certs tests
      - name: Code coverage upload
        uses: codecov/codecov-action@v3