Skip to content

Commit 4d53a38

Browse files
committed
add test workflow
1 parent f5e965c commit 4d53a38

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches: '*'
6+
7+
workflow_dispatch:
8+
inputs:
9+
branch:
10+
description: 'The branch, tag or SHA to release from'
11+
required: true
12+
default: 'master'
13+
14+
jobs:
15+
tests:
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
python: [3.6, 3.7, 3.8, 3.9]
20+
os: [ubuntu-latest]
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
with:
25+
ref: ${{ github.event.inputs.branch }}
26+
- name: Use Python ${{ matrix.python }}
27+
uses: actions/setup-python@v2
28+
with:
29+
python-version: ${{ matrix.python }}
30+
31+
- name: Install test dependencies
32+
run: python -m pip install pytest
33+
34+
- name: Install current version of the clamd package
35+
run: python -m pip install -e .
36+
37+
- name: Run unit tests
38+
run: pytest

0 commit comments

Comments
 (0)