Skip to content

Bump actions/setup-python from 4.7.1 to 5.0.0 #298

Bump actions/setup-python from 4.7.1 to 5.0.0

Bump actions/setup-python from 4.7.1 to 5.0.0 #298

Workflow file for this run

name: pipeline
on: [push]
jobs:
test-job:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
services:
clickhouse:
image: yandex/clickhouse-server
ports:
- 9000:9000
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings
flake8 . --count --exit-zero --statistics
- name: Test with pytest
run: |
pytest -v --cov=./mcbackend --cov-report xml --cov-report term-missing mcbackend/
- name: Upload coverage
uses: codecov/codecov-action@v3
if: matrix.python-version == 3.9
with:
file: ./coverage.xml
fail_ci_if_error: false
- name: Test Wheel install and import
run: |
python setup.py bdist_wheel
cd dist
pip install mcbackend*.whl
python -c "import mcbackend; print(mcbackend.__version__)"