diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-03-06 23:38:59 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-03-06 23:38:59 +0200 |
commit | c20c3b9bab48f0908f3547765126c4d30d11ca5a (patch) | |
tree | effd0047b03ce6b8dd45b6bc730ce1a06366db85 | |
parent | bb0697c68191d4f6a35a9f66a96867f4a7dbe9e3 (diff) |
pip anyone
-rw-r--r-- | .github/workflows/auto.yml | 2 | ||||
-rwxr-xr-x | dev.sh | 22 |
2 files changed, 15 insertions, 9 deletions
diff --git a/.github/workflows/auto.yml b/.github/workflows/auto.yml index 81d4673..da23a58 100644 --- a/.github/workflows/auto.yml +++ b/.github/workflows/auto.yml @@ -27,7 +27,7 @@ jobs: # Install dependencies - name: Install dev dependencies - run: ./dev.sh dev + run: PIP="pip" ./dev.sh dev # Run coverage xml - name: Run unittests with coverage and generate xml @@ -15,15 +15,16 @@ covxml Sama mutta xml muoto (codecov tarvitsee tämän) covff Tee html haarakattavuusraportti ja avaa se firefoxissa all Sama kuin '$0 covff && $0 pylint' install Rakenna ja asenna paketti käyttäen pipx & poetry -uninstall Poistaa paketin (pipx uninstall...) " && exit 0 +[ x$PIP = x ] && PIP="pipx" + echo "\033[32m>>> $0 $1 - started.\033[0m" case $1 in install-poetry) - pipx install poetry + $PIP install poetry ;; poetry-dev-deps) @@ -67,14 +68,19 @@ case $1 in && $0 pylint ;; - install) - pipx install poetry \ - && poetry build \ - && pipx install `ls dist/*.tar.gz -t -c -1 | head -1` + poetry-build) + poetry build + ;; + + install-latest-build) + $PIP install `ls dist/*.tar.gz -t -c -1 | head -1` \ + && echo "For uninstall please use '$PIP uninstall ...'" ;; - uninstall) - pipx uninstall miinaharava + install) + $0 install-poetry \ + && $0 poetry-build \ + && $0 install-latest-build ;; *) |