We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cab51b commit 7870f2cCopy full SHA for 7870f2c
2 files changed
.github/workflows/python-app.yml
@@ -0,0 +1,29 @@
1
+name: Python application
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build:
11
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Python 3.10.7
17
+ uses: actions/setup-python@v2
18
+ with:
19
+ python-version: "3.10.7"
20
+ - name: Install dependencies
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ pip install -r requirements.txt
24
+ pip install .
25
+ - name: Test with pytest
26
27
+ cd tests
28
+ coverage run --branch -m pytest --disable-pytest-warnings .
29
+ coverage report -m --show-missing
requirements.txt
@@ -0,0 +1,2 @@
+pytest
+coverage
0 commit comments