Skip to content

Commit

Permalink
Install poetry in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed Apr 14, 2023
1 parent 7f1b22d commit c746c6f
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
- name: Checkout
uses: actions/checkout@v3
- name: Install tox
# TODO: Consider replacing with custom image on self-hosted runner OR pinning version
run: python3 -m pip install tox
- name: Install tox & poetry
run: |
python3 -m pip install pipx
python3 -m pipx ensurepath
pipx install tox
pipx install poetry
- name: Run tests
run: tox run -e unit -- --junit-xml=pytest_report.xml
- name: Upload Coverage to Codecov
Expand Down Expand Up @@ -79,9 +82,12 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
- name: Checkout
uses: actions/checkout@v3
- name: Install tox
# TODO: Consider replacing with custom image on self-hosted runner OR pinning version
run: python3 -m pip install tox
- name: Install tox & poetry
run: |
python3 -m pip install pipx
python3 -m pipx ensurepath
pipx install tox
pipx install poetry
- name: Select test stability level
id: select-test-stability
run: |
Expand Down Expand Up @@ -122,6 +128,12 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
- name: Checkout
uses: actions/checkout@v3
- name: Install tox & poetry
run: |
python3 -m pip install pipx
python3 -m pipx ensurepath
pipx install tox
pipx install poetry
- name: Setup operator environment
# TODO: Replace with custom image on self-hosted runner
uses: charmed-kubernetes/actions-operator@main
Expand Down

0 comments on commit c746c6f

Please sign in to comment.