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

[BUILD] Changed buildcheck.yaml to pyenv and Pipfile #397

Merged
merged 1 commit into from
Jan 18, 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
35 changes: 26 additions & 9 deletions .github/workflows/buildcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,40 @@ jobs:
with:
submodules: true

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pyenv
run: |
# Needed for using exact python version, which is
# required in `Pipfile`.
curl https://pyenv.run | bash
export PATH="$HOME/.pyenv/bin:$PATH"
pyenv install 3.8.12

- name: Install python packages
run: |
python -V
python -m pip --quiet --no-input install --upgrade pip
python -m pip --quiet --no-input install --upgrade pipenv wheel
cd vss-tools
pip install -r requirements.txt
python setup.py -q install

pipenv install
pipenv run python setup.py -q install
env:
PIPENV_VENV_IN_PROJECT: 1

- name: Test mandatory targets
run: make travis_targets
run: |
pipenv install
pipenv run make travis_targets
env:
PIPENV_PIPFILE: ./vss-tools/Pipfile
PIPENV_VENV_IN_PROJECT: 1

- name: Test optional targets. NOTE - always succeeds
run: make -k travis_optional || true
run: |
pipenv install
pipenv run make -k travis_optional || true
env:
PIPENV_PIPFILE: ./vss-tools/Pipfile
PIPENV_VENV_IN_PROJECT: 1

- name: Install hugo
env:
Expand Down