[pre-commit.ci] pre-commit autoupdate #235
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: CI - Python Package | |
on: | |
push: | |
branches: [main, feature/*] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
pre-commit: | |
name: Pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
- name: Pre-commit | |
uses: pre-commit/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Prettify code | |
uses: creyD/[email protected] | |
with: | |
prettier_options: --write **/*.{js,md,json,yml,yaml} | |
file_pattern: "." | |
build_pandas: | |
name: >- | |
Python ${{ matrix.python-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} via `pandas` | |
needs: [pre-commit, prettier] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
os: [ubuntu-latest, macOS-latest] | |
arch: [x64] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
- name: Install Pandas2Tensorboard | |
run: | | |
poetry install | |
poetry run pytest --diff-symbols --cov=./pandas2tensorboard -vv --cov-report=xml | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env_vars: OS,PYTHON | |
build_modin: | |
name: >- | |
Python ${{ matrix.python-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} via `modin` | |
needs: [pre-commit, prettier] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
os: [ubuntu-latest, macOS-latest] | |
arch: [x64] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
- name: Install Pandas2Tensorboard | |
run: | | |
poetry install --extras modin | |
poetry run pytest --diff-symbols --cov=./pandas2tensorboard -vv --cov-report=xml | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env_vars: OS,PYTHON |