Skip to content

Commit 041362e

Browse files
committed
chore: streamline deployment workflow by removing unnecessary cache check and activating virtual environment with Poetry
1 parent 78c42ab commit 041362e

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,19 @@ jobs:
5353
key: venv-${{ runner.os }}-${{ steps.python-setup.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
5454

5555
- name: Install dependencies
56-
if: steps.dependencies-cache.outputs.cache-hit != 'true'
5756
run: |
58-
poetry install --no-interaction --no-root
57+
poetry install --no-interaction
5958
6059
# TODO: add linting / black / flake8
6160
# - name: Lint with flake8
6261
# run: |
63-
# source .venv/bin/activate
64-
# # stop the build if there are Python syntax errors or undefined names
65-
# flake8 ./evaluation_function --count --select=E9,F63,F7,F82 --show-source --statistics
66-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
67-
# flake8 ./evaluation_function --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
62+
# poetry run flake8 ./evaluation_function --count --select=E9,F63,F7,F82 --show-source --statistics
63+
# poetry run flake8 ./evaluation_function --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
6864

6965
- name: Run tests
7066
if: always()
7167
run: |
72-
source .venv/bin/activate
73-
pytest --junit-xml=./reports/pytest.xml --tb=auto -v
68+
poetry run pytest --junit-xml=./reports/pytest.xml --tb=auto -v
7469
7570
- name: Upload test results
7671
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)