Skip to content

renamed job

renamed job #949

Workflow file for this run

name: build
on:
pull_request:
branches: [ 'master' ]
# workflow_dispatch:
push:
branches: ['*']
jobs:
install_python_with_pyenv:
runs-on: ubuntu-latest
steps:
- name: Install python build tools
shell: bash
# Ref: https://github.com/pyenv/pyenv/wiki#suggested-build-environment
run: |
sudo apt-get update -y
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev ffmpeg
- name: Install pyenv
shell: bash
run: |
git clone https://github.com/pyenv/pyenv.git "$HOME/.pyenv"
- name: Setup environment variables
shell: bash
run: |
PYENV_ROOT="$HOME/.pyenv"
PYENV_BIN="$PYENV_ROOT/bin"
echo "$PYENV_BIN" >> $GITHUB_PATH
echo "PYENV_ROOT=$PYENV_ROOT" >> $GITHUB_ENV
- name: Check pyenv version
shell: bash
run: |
pyenv --version
tox:
needs: install_python_with_pyenv
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