Bump s3fs from 2022.2.0 to 2024.9.0 #34
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Linux Testing | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
numpy_version: ['!=1.21.0', '==1.17.*'] | |
exclude: | |
- python-version: 3.9 | |
numpy_version: '==1.17.*' | |
services: | |
redis: | |
image: redis | |
# Set health checks to wait until redis has started | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
mongodb: | |
image: mongo:4.4.11 | |
ports: | |
- 27017:27017 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@master | |
with: | |
channels: conda-forge | |
python-version: ${{ matrix.python-version }} | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
# Runs a set of commands using the runners shell | |
- name: Create Conda environment with the rights deps | |
shell: "bash -l {0}" | |
run: | | |
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs lmdb pip nodejs flake8 mypy | |
conda activate zarr-env | |
npm install -g azurite | |
- name: Install dependencies | |
shell: "bash -l {0}" | |
run: | | |
conda activate zarr-env | |
python -m pip install --upgrade pip | |
python -m pip install -U pip setuptools wheel codecov line_profiler | |
python -m pip install -rrequirements_dev_minimal.txt numpy${{ matrix.numpy_version}} -rrequirements_dev_optional.txt pymongo redis | |
python -m pip install . | |
python -m pip freeze | |
- name: Tests | |
shell: "bash -l {0}" | |
env: | |
COVERAGE_FILE: .coverage.${{matrix.python-version}}.${{matrix.numpy_version}} | |
ZARR_TEST_ABS: 1 | |
ZARR_TEST_MONGO: 1 | |
ZARR_TEST_REDIS: 1 | |
run: | | |
conda activate zarr-env | |
mkdir ~/blob_emulator | |
azurite -l ~/blob_emulator --debug debug.log 2>&1 > stdouterr.log & | |
pytest --cov=zarr --cov-config=.coveragerc --doctest-plus --cov-report xml --cov=./ --timeout=300 | |
- uses: codecov/codecov-action@v1 | |
with: | |
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
#files: ./coverage1.xml,./coverage2.xml # optional | |
#flags: unittests # optional | |
#name: codecov-umbrella # optional | |
#fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) | |
- name: Linting | |
shell: "bash -l {0}" | |
run: | | |
conda activate zarr-env | |
flake8 zarr | |
mypy zarr | |