We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5e965c commit 4d53a38Copy full SHA for 4d53a38
1 file changed
.github/workflows/tests.yml
@@ -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
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