From ffb32db59f778efb1da2f0a55dc5bcaf58f26c49 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 9 Dec 2023 18:25:07 +0900 Subject: [PATCH 1/6] fix: wrong syntax --- .github/workflows/drive_to_es.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/drive_to_es.yml b/.github/workflows/drive_to_es.yml index 957b3e5..16840bd 100644 --- a/.github/workflows/drive_to_es.yml +++ b/.github/workflows/drive_to_es.yml @@ -3,6 +3,10 @@ name: CI/CD for drive_to_es +run-name: ${{ github.actor }} is running deployment workflow + +on: [push] + jobs: test: runs-on: ubuntu-latest @@ -18,7 +22,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Test run: | - apt install pipx && \ + apt install -y pipx && \ pipx install poetry && \ poetry install && \ cd household_expenses/publish/drive_to_es/ From df15eb0e1f83d5c872883309b0688e95cee1a6a3 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 9 Dec 2023 18:26:06 +0900 Subject: [PATCH 2/6] fix: lacking repository update --- .github/workflows/drive_to_es.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/drive_to_es.yml b/.github/workflows/drive_to_es.yml index 16840bd..caa8f69 100644 --- a/.github/workflows/drive_to_es.yml +++ b/.github/workflows/drive_to_es.yml @@ -22,7 +22,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Test run: | - apt install -y pipx && \ + apt update && apt install -y pipx && \ pipx install poetry && \ poetry install && \ cd household_expenses/publish/drive_to_es/ From 357791709223443899069304b1e278404281ebc5 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 9 Dec 2023 18:31:30 +0900 Subject: [PATCH 3/6] fix: use higher privileges --- .github/workflows/drive_to_es.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/drive_to_es.yml b/.github/workflows/drive_to_es.yml index caa8f69..d0decaa 100644 --- a/.github/workflows/drive_to_es.yml +++ b/.github/workflows/drive_to_es.yml @@ -22,7 +22,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Test run: | - apt update && apt install -y pipx && \ + sudo apt update && sudo apt install -y pipx && \ pipx install poetry && \ poetry install && \ cd household_expenses/publish/drive_to_es/ From 0d9543132f7b11f86e6934fdd19e4749e1deefee Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 9 Dec 2023 18:34:56 +0900 Subject: [PATCH 4/6] fix: wrong directory --- .github/workflows/drive_to_es.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/drive_to_es.yml b/.github/workflows/drive_to_es.yml index d0decaa..7bf7645 100644 --- a/.github/workflows/drive_to_es.yml +++ b/.github/workflows/drive_to_es.yml @@ -22,10 +22,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Test run: | + cd household_expenses/publish/drive_to_es/ sudo apt update && sudo apt install -y pipx && \ pipx install poetry && \ - poetry install && \ - cd household_expenses/publish/drive_to_es/ + poetry install make test make lint make static-type-check \ No newline at end of file From 6cd53f59986ea0185d2fbcf9654115bd4631ce2b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 9 Dec 2023 18:38:16 +0900 Subject: [PATCH 5/6] fix: wrong context --- .github/workflows/drive_to_es.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/drive_to_es.yml b/.github/workflows/drive_to_es.yml index 7bf7645..e21ac1e 100644 --- a/.github/workflows/drive_to_es.yml +++ b/.github/workflows/drive_to_es.yml @@ -26,6 +26,7 @@ jobs: sudo apt update && sudo apt install -y pipx && \ pipx install poetry && \ poetry install + poetry shell make test make lint make static-type-check \ No newline at end of file From 1c9dac940b36c7eae2bf54a345a13e104f666a79 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 9 Dec 2023 18:42:33 +0900 Subject: [PATCH 6/6] fix: dont use shell where there is no tty --- .github/workflows/drive_to_es.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/drive_to_es.yml b/.github/workflows/drive_to_es.yml index e21ac1e..fa6bbee 100644 --- a/.github/workflows/drive_to_es.yml +++ b/.github/workflows/drive_to_es.yml @@ -26,7 +26,4 @@ jobs: sudo apt update && sudo apt install -y pipx && \ pipx install poetry && \ poetry install - poetry shell - make test - make lint - make static-type-check \ No newline at end of file + poetry run make test lint static-type-check \ No newline at end of file