summaryrefslogtreecommitdiff
path: root/.github/workflows/tests.yaml
blob: e8a3b6da784840c7b5b3c2b986316c019b851c9d (plain)
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
name: Run the tests
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: CERT-Polska/lint-python-action@v1
        with:
          source: karton/
  unittest:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        minor: [8, 9, 10]
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v1
        with:
          python-version: 3.${{ matrix.minor }}
      - run: pip install -r requirements.txt
      - run: python -m unittest discover