| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: ["*"] |
| 6 | pull_request: |
| 7 | branches: [master] |
| 8 | |
| 9 | jobs: |
| 10 | linux: |
| 11 | name: ${{ matrix.PY }}-pytest |
| 12 | runs-on: ubuntu-24.04 |
| 13 | strategy: |
| 14 | fail-fast: false |
| 15 | matrix: |
| 16 | PY: |
| 17 | - "3.10" |
| 18 | - "3.11" |
| 19 | - "3.12" |
| 20 | - "3.13" |
| 21 | - "3.14" |
| 22 | |
| 23 | env: |
| 24 | CIRUN: true |
| 25 | |
| 26 | steps: |
| 27 | - name: Checkout |
| 28 | uses: actions/checkout@v5 |
| 29 | with: |
| 30 | fetch-depth: 0 |
| 31 | |
| 32 | - name: Setup conda |
| 33 | uses: conda-incubator/setup-miniconda@v3 |
| 34 | with: |
| 35 | environment-file: ci/environment-linux.yml |
| 36 | python-version: ${{ matrix.PY }} |
| 37 | |
| 38 | - name: Run Tests |
| 39 | shell: bash -l {0} |
| 40 | run: | |
| 41 | pip install -e .[test_full] |
| 42 | pytest -v |
| 43 | |
| 44 | win: |
| 45 | name: pytest-win |
| 46 | runs-on: windows-2022 |
| 47 | |
| 48 | env: |
| 49 | CIRUN: true |
| 50 | |
| 51 | steps: |
| 52 | - name: Checkout |
| 53 | uses: actions/checkout@v5 |
| 54 | with: |
| 55 | fetch-depth: 0 |
| 56 | |
| 57 | - name: Setup conda |
| 58 | uses: conda-incubator/setup-miniconda@v3 |
| 59 | with: |
| 60 | environment-file: ci/environment-win.yml |
| 61 | |
| 62 | - name: Run Tests |
| 63 | shell: bash -l {0} |
| 64 | run: | |
| 65 | pip install -e .[test] |
| 66 | pytest -v |
| 67 | |
| 68 | lint: |
| 69 | name: lint |
| 70 | runs-on: ubuntu-24.04 |
| 71 | steps: |
| 72 | - uses: actions/checkout@main |
| 73 | - uses: actions/setup-python@main |
| 74 | with: |
| 75 | python-version: "3.11" |
| 76 | - uses: pre-commit/action@main |
| 77 | |
| 78 | downstream: |
| 79 | name: downstream |
| 80 | runs-on: ubuntu-24.04 |
| 81 | |
| 82 | steps: |
| 83 | - name: Checkout |
| 84 | uses: actions/checkout@v5 |
| 85 | with: |
| 86 | fetch-depth: 0 |
| 87 | |
| 88 | - name: Setup conda |
| 89 | uses: conda-incubator/setup-miniconda@v3 |
| 90 | with: |
| 91 | environment-file: ci/environment-downstream.yml |
| 92 | |
| 93 | - name: Local install |
| 94 | shell: bash -l {0} |
| 95 | run: | |
| 96 | sh install_s3fs.sh |
| 97 | pip install -e .[test,test_downstream] |
| 98 | pip list |
| 99 | |
| 100 | - name: Run fsspec tests |
| 101 | shell: bash -l {0} |
| 102 | run: | |
| 103 | pytest -v fsspec/tests/test_downstream.py |
| 104 | |
| 105 | - name: Run dask tests |
| 106 | shell: bash -l {0} |
| 107 | run: | |
| 108 | dask_test_path=$(python -c "import dask.bytes;print(dask.bytes.__path__[0])") |
| 109 | pytest -v $dask_test_path |
| 110 | |
| 111 | fsspec_friends: |
| 112 | name: ${{ matrix.FRIEND }}-pytest |
| 113 | runs-on: ubuntu-24.04 |
| 114 | strategy: |
| 115 | fail-fast: false |
| 116 | matrix: |
| 117 | FRIEND: [s3fs, gcsfs] |
| 118 | |
| 119 | env: |
| 120 | CIRUN: true |
| 121 | BOTO_CONFIG: /dev/null |
| 122 | AWS_ACCESS_KEY_ID: foobar_key |
| 123 | AWS_SECRET_ACCESS_KEY: foobar_secret |
| 124 | |
| 125 | steps: |
| 126 | - name: Checkout |
| 127 | uses: actions/checkout@v5 |
| 128 | |
| 129 | - name: Setup conda |
| 130 | uses: conda-incubator/setup-miniconda@v3 |
| 131 | with: |
| 132 | environment-file: ci/environment-friends.yml |
| 133 | |
| 134 | - name: Clone |
| 135 | shell: bash -l {0} |
| 136 | run: git clone https://github.com/fsspec/${{ matrix.FRIEND }} |
| 137 | |
| 138 | - name: Install |
| 139 | shell: bash -l {0} |
| 140 | run: | |
| 141 | pip install -e . --no-deps |
| 142 | pip list |
| 143 | |
| 144 | - name: Test |
| 145 | shell: bash -l {0} |
| 146 | run: | |
| 147 | cd ${{ matrix.FRIEND }} |
| 148 | pytest -v -W ignore::pytest.PytestRemovedIn9Warning |
| 149 | cd .. |