|
20 | 20 | with: |
21 | 21 | python-version: ${{ matrix.python-version }} |
22 | 22 | #----------------------------------------------- |
23 | | - # try to load cached poetry installation |
| 23 | + # try to load cached poetry installation |
24 | 24 | #----------------------------------------------- |
25 | 25 | - name: Load cached Poetry installation |
26 | 26 | id: cached-poetry |
@@ -56,37 +56,49 @@ jobs: |
56 | 56 | if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' |
57 | 57 | run: poetry install --no-interaction --no-root |
58 | 58 | #---------------------------------------------- |
59 | | - # install your root project, if required |
| 59 | + # install your root project, if required |
60 | 60 | #---------------------------------------------- |
61 | 61 | - name: Install project |
62 | 62 | run: poetry install --no-interaction |
63 | 63 | #---------------------------------------------- |
64 | | - # run black |
| 64 | + # build the project |
| 65 | + #---------------------------------------------- |
| 66 | + - name: Build & Install project with pip |
| 67 | + run: | |
| 68 | + poetry build |
| 69 | + pip install dist/*.whl |
| 70 | + #---------------------------------------------- |
| 71 | + # run black |
65 | 72 | #---------------------------------------------- |
66 | 73 | - name: Run Black |
67 | 74 | run: poetry run black --check . |
68 | 75 | #---------------------------------------------- |
69 | | - # run mypy |
| 76 | + # run mypy |
70 | 77 | #---------------------------------------------- |
71 | 78 | - name: Run Mypy |
72 | 79 | run: poetry run mypy . |
73 | 80 | #---------------------------------------------- |
74 | | - # run poetry check |
| 81 | + # run poetry check |
75 | 82 | #---------------------------------------------- |
76 | 83 | - name: Run Poetry Check |
77 | 84 | run: poetry check |
78 | 85 | #---------------------------------------------- |
79 | | - # run flake8 |
| 86 | + # run flake8 |
80 | 87 | #---------------------------------------------- |
81 | 88 | - name: Run Flake8 |
82 | 89 | run: poetry run flake8 chainbench |
83 | 90 | #---------------------------------------------- |
84 | | - # run isort |
| 91 | + # run isort |
85 | 92 | #---------------------------------------------- |
86 | 93 | - name: Run Isort |
87 | 94 | run: poetry run isort --check . |
88 | 95 | #---------------------------------------------- |
89 | | - # run light smoke test |
| 96 | + # run light smoke test (poetry) |
90 | 97 | #---------------------------------------------- |
91 | | - - name: Run Light Smoke Test |
| 98 | + - name: Run Light Smoke Test (poetry) |
92 | 99 | run: poetry run chainbench start --help |
| 100 | + #---------------------------------------------- |
| 101 | + # run light smoke test (package) |
| 102 | + #---------------------------------------------- |
| 103 | + - name: Run Light Smoke Test (package) |
| 104 | + run: chainbench start --help |
0 commit comments