We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dc358b commit 60dafd8Copy full SHA for 60dafd8
1 file changed
.github/workflows/python-package-conda.yml
@@ -0,0 +1,41 @@
1
+name: Python tests
2
+
3
+on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
8
9
+jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout repository
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.8"
21
22
+ - name: Install Poetry
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install poetry
26
27
+ - name: Install dependencies
28
29
+ poetry install --with dev
30
31
+ - name: Run pytest
32
33
+ poetry run pytest
34
35
+ - name: Upload pytest HTML report
36
+ if: always()
37
+ uses: actions/upload-artifact@v4
38
39
+ name: pytest-report
40
+ path: reports/report.html
41
0 commit comments