Skip to content

Bump actions/setup-python from 5.2.0 to 5.3.0 #333

Bump actions/setup-python from 5.2.0 to 5.3.0

Bump actions/setup-python from 5.2.0 to 5.3.0 #333

Workflow file for this run

name: pipeline
on: [push]
jobs:
test-job:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
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/setup-python@v5.3.0
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@v4
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__)"