Get tune mask from "tune"
or "*__tune"
stats
#302
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__)" |