@@ -3,7 +3,7 @@ name: Unit Tests
3
3
on : [push]
4
4
5
5
jobs :
6
- build :
6
+ Continuous-Integration :
7
7
runs-on : ${{ matrix.os }}
8
8
strategy :
9
9
matrix :
27
27
- name : Test with pytest
28
28
run : poetry run pytest
29
29
30
+ - name : Use Codecov to track coverage
31
+ uses : codecov/codecov-action@v2
32
+ with :
33
+ file : ./coverage.xml
34
+
35
+ - name : Build documentation
36
+ run : poetry run make html --directory docs/
37
+
38
+ # Continuous-Development:
39
+ # needs: Continuous-Integration
40
+
41
+ # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
42
+
43
+ # runs-on: ubuntu-latest
44
+
45
+ # steps:
46
+ # - uses: actions/checkout@v2
47
+ # with:
48
+ # fetch-depth: 0
49
+
50
+ # - name: Set up Python 3.12
51
+ # uses: actions/setup-python@v2
52
+ # with:
53
+ # python-version: 3.12
54
+
55
+ # - name: Install poetry
56
+ # uses: snok/install-poetry@v1
57
+
58
+ # - name: Install package
59
+ # run: poetry install
60
+
61
+ # - name: Build package
62
+ # run: poetry build
63
+
64
+ # - name: Publish package
65
+ # uses: pypa/gh-action-pypi-publish@27a0a2a
66
+ # with:
67
+ # user: __token__
68
+ # password: ${{ secrets.PYPI_TOKEN }}
69
+ # repository_url: https://upload.pypi.org/legacy/
70
+ # build_dir: ./dist
71
+
72
+ # - name: Publish documentation
73
+ # uses: maxheld83/ghpages@v0.2.1
74
+ # with:
75
+ # build_dir: docs/_build/html
76
+ # target_branch: gh-pages
77
+ # committer_name: "GitHub Actions"
78
+ # committer_email: "
0 commit comments