Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert workaround as odo install issue is fixed #57

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 8 additions & 26 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,11 @@ jobs:
- name: Start minikube
uses: medyagh/setup-minikube@latest

# This step is disabled until the issue is addressed: https://github.com/redhat-actions/openshift-tools-installer/issues/66
# - name: Install ODO
# uses: redhat-actions/openshift-tools-installer@v1
# with:
# # Installs the latest release of odo
# odo: "latest"

- name: Install ODO for Linux
if: matrix.os == 'ubuntu-latest'
run: |
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
odo version

- name: Install ODO for MacOS
if: matrix.os == 'macos-10.15'
run: |
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
chmod +x ./odo
sudo mv ./odo /usr/local/bin/odo
odo version
- name: Install ODO
uses: redhat-actions/openshift-tools-installer@v1
with:
# Installs the latest release of odo
odo: "latest"

# Setup Python
- name: Install Python, pipenv and Pipfile packages
Expand All @@ -66,5 +46,7 @@ jobs:
python-version: "3.9.10"

- name: Run test with pipenv and pytest
run: pipenv run pytest tests -v
run: |
odo version
pipenv run pytest tests -v