Bump black from 23.1.0 to 24.3.0 #14
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: Ubuntu | |
on: | |
push: | |
branches: | |
- main | |
- 2.0.x | |
pull_request: | |
branches: | |
- main | |
- 2.0.x | |
paths-ignore: | |
- "doc/**" | |
- "web/**" | |
permissions: | |
contents: read | |
jobs: | |
pytest: | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
shell: bash -el {0} | |
timeout-minutes: 180 | |
strategy: | |
matrix: | |
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml] | |
# Prevent the include jobs from overriding other jobs | |
pattern: [""] | |
include: | |
- name: "Downstream Compat" | |
env_file: actions-38-downstream_compat.yaml | |
pattern: "not slow and not network and not single_cpu" | |
pytest_target: "pandas/tests/test_downstream.py" | |
- name: "Minimum Versions" | |
env_file: actions-38-minimum_versions.yaml | |
pattern: "not slow and not network and not single_cpu" | |
- name: "Locale: it_IT" | |
env_file: actions-38.yaml | |
pattern: "not slow and not network and not single_cpu" | |
extra_apt: "language-pack-it" | |
# Use the utf8 version as the default, it has no bad side-effect. | |
lang: "it_IT.utf8" | |
lc_all: "it_IT.utf8" | |
# Also install it_IT (its encoding is ISO8859-1) but do not activate it. | |
# It will be temporarily activated during tests with locale.setlocale | |
extra_loc: "it_IT" | |
- name: "Locale: zh_CN" | |
env_file: actions-38.yaml | |
pattern: "not slow and not network and not single_cpu" | |
extra_apt: "language-pack-zh-hans" | |
# Use the utf8 version as the default, it has no bad side-effect. | |
lang: "zh_CN.utf8" | |
lc_all: "zh_CN.utf8" | |
# Also install zh_CN (its encoding is gb2312) but do not activate it. | |
# It will be temporarily activated during tests with locale.setlocale | |
extra_loc: "zh_CN" | |
- name: "Copy-on-Write" | |
env_file: actions-310.yaml | |
pattern: "not slow and not network and not single_cpu" | |
pandas_copy_on_write: "1" | |
- name: "Pypy" | |
env_file: actions-pypy-38.yaml | |
pattern: "not slow and not network and not single_cpu" | |
test_args: "--max-worker-restart 0" | |
- name: "Numpy Dev" | |
env_file: actions-310-numpydev.yaml | |
pattern: "not slow and not network and not single_cpu" | |
test_args: "-W error::DeprecationWarning -W error::FutureWarning" | |
# TODO(cython3): Re-enable once next-beta(after beta 1) comes out | |
# There are some warnings failing the build with -werror | |
pandas_ci: "0" | |
- name: "Pyarrow Nightly" | |
env_file: actions-311-pyarrownightly.yaml | |
pattern: "not slow and not network and not single_cpu" | |
fail-fast: false | |
name: ${{ matrix.name || matrix.env_file }} | |
env: | |
ENV_FILE: ci/deps/${{ matrix.env_file }} | |
PATTERN: ${{ matrix.pattern }} | |
EXTRA_APT: ${{ matrix.extra_apt || '' }} | |
LANG: ${{ matrix.lang || '' }} | |
LC_ALL: ${{ matrix.lc_all || '' }} | |
PANDAS_COPY_ON_WRITE: ${{ matrix.pandas_copy_on_write || '0' }} | |
PANDAS_CI: ${{ matrix.pandas_ci || '1' }} | |
TEST_ARGS: ${{ matrix.test_args || '' }} | |
PYTEST_WORKERS: 'auto' | |
PYTEST_TARGET: ${{ matrix.pytest_target || 'pandas' }} | |
IS_PYPY: ${{ contains(matrix.env_file, 'pypy') }} | |
# TODO: re-enable coverage on pypy, its slow | |
COVERAGE: ${{ !contains(matrix.env_file, 'pypy') }} | |
concurrency: | |
# https://gh.neting.ccmunity/t/concurrecy-not-work-for-push/183068/7 | |
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.extra_apt || '' }} | |
cancel-in-progress: true | |
services: | |
mysql: | |
image: mysql | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: pandas | |
options: >- | |
--health-cmd "mysqladmin ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 3306:3306 | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: pandas | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
moto: | |
image: motoserver/moto:4.1.4 | |
env: | |
AWS_ACCESS_KEY_ID: foobar_key | |
AWS_SECRET_ACCESS_KEY: foobar_secret | |
ports: | |
- 5000:5000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Extra installs | |
# xsel for clipboard tests | |
run: sudo apt-get update && sudo apt-get install -y xsel ${{ env.EXTRA_APT }} | |
- name: Generate extra locales | |
# These extra locales will be available for locale.setlocale() calls in tests | |
run: | | |
sudo locale-gen ${{ matrix.extra_loc }} | |
if: ${{ matrix.extra_loc }} | |
- name: Set up Conda | |
uses: ./.github/actions/setup-conda | |
with: | |
environment-file: ${{ env.ENV_FILE }} | |
- name: Build Pandas | |
id: build | |
uses: ./.github/actions/build_pandas | |
- name: Test (not single_cpu) | |
uses: ./.github/actions/run-tests | |
# TODO: Don't continue on error for PyPy | |
continue-on-error: ${{ env.IS_PYPY == 'true' }} | |
env: | |
# Set pattern to not single_cpu if not already set | |
PATTERN: ${{ env.PATTERN == '' && 'not single_cpu' || matrix.pattern }} | |
- name: Test (single_cpu) | |
uses: ./.github/actions/run-tests | |
# TODO: Don't continue on error for PyPy | |
continue-on-error: ${{ env.IS_PYPY == 'true' }} | |
env: | |
PATTERN: 'single_cpu' | |
PYTEST_WORKERS: 1 | |
if: ${{ matrix.pattern == '' && (always() && steps.build.outcome == 'success')}} |