diff options
| author | jvoisin | 2022-09-03 15:27:53 +0200 |
|---|---|---|
| committer | jvoisin | 2022-09-03 15:27:53 +0200 |
| commit | 2d6d30a2d11704df48c4bb46b75243d582bcc4c8 (patch) | |
| tree | 8af5040ea0ff443157b1856c6b29f9d86ffc22e8 /.github | |
First commit
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/tests.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..e8a3b6d --- /dev/null +++ b/.github/workflows/tests.yaml | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | name: Run the tests | ||
| 2 | on: | ||
| 3 | push: | ||
| 4 | branches: | ||
| 5 | - master | ||
| 6 | pull_request: | ||
| 7 | branches: | ||
| 8 | - master | ||
| 9 | jobs: | ||
| 10 | lint: | ||
| 11 | runs-on: ubuntu-latest | ||
| 12 | steps: | ||
| 13 | - uses: CERT-Polska/lint-python-action@v1 | ||
| 14 | with: | ||
| 15 | source: karton/ | ||
| 16 | unittest: | ||
| 17 | runs-on: ubuntu-latest | ||
| 18 | strategy: | ||
| 19 | matrix: | ||
| 20 | minor: [8, 9, 10] | ||
| 21 | steps: | ||
| 22 | - uses: actions/checkout@v2 | ||
| 23 | - uses: actions/setup-python@v1 | ||
| 24 | with: | ||
| 25 | python-version: 3.${{ matrix.minor }} | ||
| 26 | - run: pip install -r requirements.txt | ||
| 27 | - run: python -m unittest discover | ||
