Skip to content

Rename read/write_fixed_duration to read/write #1329

Rename read/write_fixed_duration to read/write

Rename read/write_fixed_duration to read/write #1329

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
defaults:
run:
shell: bash -l -eo pipefail {0}
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout source
uses: actions/checkout@v5
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment_gcsfs.yaml
python-version: ${{ matrix.PY }}
activate-environment: gcsfs_test
- name: Conda info
run: |
conda list
conda --version
- name: install
run: |
pip install -e .
- name: Run Standard Bucket Tests with extended feature support turned OFF
run: |
export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
export GCSFS_EXPERIMENTAL_ZB_HNS_SUPPORT="false"
pytest -vv -s \
--cov=gcsfs --cov-report=xml \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%H:%M:%S" \
gcsfs/
- name: Run Benchmark Infrastructure Unit Tests
run: |
pip install -r gcsfs/tests/perf/microbenchmarks/requirements.txt
pytest gcsfs/tests/perf/microbenchmarks --run-benchmarks-infra
- name: Run Standard Bucket Tests with default ON extended feature support
run: |
export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
pytest -vv -s \
--cov=gcsfs --cov-append --cov-report=xml \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%H:%M:%S" \
gcsfs/
- name: Run Extended tests (Zonal & HNS Enabled)
run: |
export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
# TODO: Use dedicated test variables to decouple specialised test execution from the GCSFS_EXPERIMENTAL_ZB_HNS_SUPPORT feature flag.
export GCSFS_EXPERIMENTAL_ZB_HNS_SUPPORT="true"
pytest -vv -s \
--cov=gcsfs --cov-append --cov-report=xml \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%H:%M:%S" \
gcsfs/tests/test_extended_gcsfs.py \
gcsfs/tests/test_extended_hns_gcsfs.py \
gcsfs/tests/test_extended_gcsfs_unit.py \
gcsfs/tests/test_zb_hns_utils.py \
gcsfs/tests/test_zonal_file.py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: false
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- uses: pre-commit/action@v3.0.1