Skip to content

readded push trigger #938

readded push trigger

readded push trigger #938

Workflow file for this run

name: build
on:
pull_request:
branches: [ 'master' ]
# workflow_dispatch:
push:
branches: ['*']
jobs:
tox:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- dbr142
- dbr133
- dbr122
- dbr113
- dbr104
- dbr91
steps:
- uses: actions/checkout@v3
- name: Install pyenv
run: |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc
- 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
- 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