Skip to content

.bash_profile

.bash_profile #944

Workflow file for this run

name: build
on:
pull_request:
branches: [ 'master' ]
# workflow_dispatch:
push:
branches: ['*']
jobs:
install_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pyenv
run: |
curl https://pyenv.run | bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
exec "$SHELL"
- name: Install Python versions
run: |
pyenv install 3.8 3.9 3.10
- name: Verify Python installations
run: |
python3.8 --version
python3.9 --version
python3.10 --version
tox:
needs: install_python
runs-on: ubuntu-latest
strategy:
matrix:
env:
- dbr142
- dbr133
- dbr122
- dbr113
- dbr104
- dbr91
steps:
- uses: actions/checkout@v3
- name: Install tox
run: pip install tox
- name: Run tox
working-directory: ./python
run: tox -e ${{ matrix.env }}
- name: Generate coverage report
working-directory: ./python
run: |
python -I -m pip install 'coverage<8,>=7' pyspark==3.2.1 -r requirements.txt
coverage run -m unittest discover -s tests -p '*_tests.py'
coverage combine
coverage xml
- name: Publish test coverage
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: ./python/coverage.xml