Suppress pandas FutureWarnings #123
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 | |
on: | |
push: | |
branches: [master] | |
paths: | |
- ./github/workflows/** | |
- bcpandas/** | |
pull_request: | |
paths: | |
- bcpandas/** | |
- pyproject.toml | |
- uv.lock | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: "Reason for triggering the workflow" | |
required: false | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Tests - Python ${{ matrix.python-version }} - Resolution Strat ${{ matrix.uv-resolution-strategy }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
uv-resolution-strategy: ["lowest-direct", "highest"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "0.5.x" | |
enable-cache: true | |
- name: Set up Python | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: uv sync --resolution ${{ matrix.uv-resolution-strategy }} | |
- name: Pull MSSQL server Docker image | |
run: docker pull mcr.microsoft.com/mssql/server:2022-latest | |
- name: Install BCP Utility | |
run: | | |
# https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools?view=sql-server-ver15#ubuntu | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list | |
sudo apt-get update | |
sudo apt-get install mssql-tools unixodbc-dev | |
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc | |
source ~/.bashrc | |
- name: Test BCP | |
run: bcp -v | |
- name: Run tests | |
run: uv run --frozen pytest -x --cov-report=xml tests | |
- name: Upload codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml |