Merge pull request #38 from fsspec/windows_home #132
Workflow file for this run
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: Test with local gateway | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.8", "3.9", "3.10"] | |
ipfs-version: ["0.30.0"] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
- name: Install ipfs | |
run: | | |
wget https://dist.ipfs.io/go-ipfs/v${{ matrix.ipfs-version }}/go-ipfs_v${{ matrix.ipfs-version }}_linux-amd64.tar.gz | |
tar -xvzf go-ipfs_v${{ matrix.ipfs-version }}_linux-amd64.tar.gz | |
pushd go-ipfs | |
sudo bash install.sh | |
sudo sysctl -w net.core.rmem_max=2500000 | |
popd | |
ipfs --version | |
ipfs init --profile server | |
touch ipfs.log | |
ipfs daemon 2>ipfs.log | grep -i -o -m1 'Daemon is ready' & tail -f --pid=$! ipfs.log | |
ipfs cat /ipfs/QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc/readme | |
ipfs dag import test/testdata.car | |
- name: Test with pytest | |
run: | | |
pip install pytest pytest-asyncio | |
pytest |