diff --git a/.github/workflows/build-test-macos-blockchain.yml b/.github/workflows/build-test-macos-blockchain.yml index 37e70785ae..380288bf05 100644 --- a/.github/workflows/build-test-macos-blockchain.yml +++ b/.github/workflows/build-test-macos-blockchain.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS blockchain Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-clvm.yml b/.github/workflows/build-test-macos-clvm.yml index 1a2ca35e61..b40dc953e2 100644 --- a/.github/workflows/build-test-macos-clvm.yml +++ b/.github/workflows/build-test-macos-clvm.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS clvm Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-core-cmds.yml b/.github/workflows/build-test-macos-core-cmds.yml index 97954cb526..ba1d2e11b9 100644 --- a/.github/workflows/build-test-macos-core-cmds.yml +++ b/.github/workflows/build-test-macos-core-cmds.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-cmds Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-core-consensus.yml b/.github/workflows/build-test-macos-core-consensus.yml index 9e491ca412..b71db9933a 100644 --- a/.github/workflows/build-test-macos-core-consensus.yml +++ b/.github/workflows/build-test-macos-core-consensus.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-consensus Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-core-custom_types.yml b/.github/workflows/build-test-macos-core-custom_types.yml index 0ba62ebbb3..e2cb0df0e4 100644 --- a/.github/workflows/build-test-macos-core-custom_types.yml +++ b/.github/workflows/build-test-macos-core-custom_types.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-custom_types Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-core-daemon.yml b/.github/workflows/build-test-macos-core-daemon.yml index 0749983cd2..bdbedf2f12 100644 --- a/.github/workflows/build-test-macos-core-daemon.yml +++ b/.github/workflows/build-test-macos-core-daemon.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-daemon Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-core-full_node-full_sync.yml b/.github/workflows/build-test-macos-core-full_node-full_sync.yml index 35f02d99c1..c2e15bfd56 100644 --- a/.github/workflows/build-test-macos-core-full_node-full_sync.yml +++ b/.github/workflows/build-test-macos-core-full_node-full_sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-full_node-full_sync Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-core-full_node-stores.yml b/.github/workflows/build-test-macos-core-full_node-stores.yml index a69f72c105..4239950e21 100644 --- a/.github/workflows/build-test-macos-core-full_node-stores.yml +++ b/.github/workflows/build-test-macos-core-full_node-stores.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-full_node-stores Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 40 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-core-full_node.yml b/.github/workflows/build-test-macos-core-full_node.yml index ce8ff7e64d..192ead7a1d 100644 --- a/.github/workflows/build-test-macos-core-full_node.yml +++ b/.github/workflows/build-test-macos-core-full_node.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-full_node Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 50 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-core-server.yml b/.github/workflows/build-test-macos-core-server.yml index 98fec323da..c9c3732992 100644 --- a/.github/workflows/build-test-macos-core-server.yml +++ b/.github/workflows/build-test-macos-core-server.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-server Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-core-ssl.yml b/.github/workflows/build-test-macos-core-ssl.yml index e26b19e2ac..95db9d247a 100644 --- a/.github/workflows/build-test-macos-core-ssl.yml +++ b/.github/workflows/build-test-macos-core-ssl.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-ssl Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-core-util.yml b/.github/workflows/build-test-macos-core-util.yml index 48c7953f31..c7628a1ec4 100644 --- a/.github/workflows/build-test-macos-core-util.yml +++ b/.github/workflows/build-test-macos-core-util.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core-util Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-core.yml b/.github/workflows/build-test-macos-core.yml index 31d2bf58f6..879f7ef144 100644 --- a/.github/workflows/build-test-macos-core.yml +++ b/.github/workflows/build-test-macos-core.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS core Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-farmer_harvester.yml b/.github/workflows/build-test-macos-farmer_harvester.yml index a8bf468caa..cbfba8f560 100644 --- a/.github/workflows/build-test-macos-farmer_harvester.yml +++ b/.github/workflows/build-test-macos-farmer_harvester.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS farmer_harvester Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-generator.yml b/.github/workflows/build-test-macos-generator.yml index 47401e2b38..4a4deb4109 100644 --- a/.github/workflows/build-test-macos-generator.yml +++ b/.github/workflows/build-test-macos-generator.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS generator Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-plot_sync.yml b/.github/workflows/build-test-macos-plot_sync.yml index 996ddd583e..8e30928bfc 100644 --- a/.github/workflows/build-test-macos-plot_sync.yml +++ b/.github/workflows/build-test-macos-plot_sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS plot_sync Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-plotting.yml b/.github/workflows/build-test-macos-plotting.yml index d5f29ba51a..8a7321c6c5 100644 --- a/.github/workflows/build-test-macos-plotting.yml +++ b/.github/workflows/build-test-macos-plotting.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS plotting Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-pools.yml b/.github/workflows/build-test-macos-pools.yml index a55b3b0dca..36acc5a5cf 100644 --- a/.github/workflows/build-test-macos-pools.yml +++ b/.github/workflows/build-test-macos-pools.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS pools Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-simulation.yml b/.github/workflows/build-test-macos-simulation.yml index 1e1559b559..44c020d00a 100644 --- a/.github/workflows/build-test-macos-simulation.yml +++ b/.github/workflows/build-test-macos-simulation.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS simulation Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-tools.yml b/.github/workflows/build-test-macos-tools.yml index 0236319639..76bbbb3ec4 100644 --- a/.github/workflows/build-test-macos-tools.yml +++ b/.github/workflows/build-test-macos-tools.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS tools Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-util.yml b/.github/workflows/build-test-macos-util.yml index 86ed0355b9..0b95599770 100644 --- a/.github/workflows/build-test-macos-util.yml +++ b/.github/workflows/build-test-macos-util.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS util Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: diff --git a/.github/workflows/build-test-macos-wallet-cat_wallet.yml b/.github/workflows/build-test-macos-wallet-cat_wallet.yml index 32da9d2607..ee50274fbf 100644 --- a/.github/workflows/build-test-macos-wallet-cat_wallet.yml +++ b/.github/workflows/build-test-macos-wallet-cat_wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS wallet-cat_wallet Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 50 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-wallet-did_wallet.yml b/.github/workflows/build-test-macos-wallet-did_wallet.yml index 1848904023..99750a5f29 100644 --- a/.github/workflows/build-test-macos-wallet-did_wallet.yml +++ b/.github/workflows/build-test-macos-wallet-did_wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS wallet-did_wallet Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-wallet-rl_wallet.yml b/.github/workflows/build-test-macos-wallet-rl_wallet.yml index acd2a84f39..37992f513d 100644 --- a/.github/workflows/build-test-macos-wallet-rl_wallet.yml +++ b/.github/workflows/build-test-macos-wallet-rl_wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS wallet-rl_wallet Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-macos-wallet-rpc.yml b/.github/workflows/build-test-macos-wallet-rpc.yml index ce3dde6686..15f3cc0afc 100644 --- a/.github/workflows/build-test-macos-wallet-rpc.yml +++ b/.github/workflows/build-test-macos-wallet-rpc.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS wallet-rpc Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-wallet-simple_sync.yml b/.github/workflows/build-test-macos-wallet-simple_sync.yml index 4d0fdad6b2..b2e9f7e8a7 100644 --- a/.github/workflows/build-test-macos-wallet-simple_sync.yml +++ b/.github/workflows/build-test-macos-wallet-simple_sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS wallet-simple_sync Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-wallet-sync.yml b/.github/workflows/build-test-macos-wallet-sync.yml index 87170bc8fb..4d3ce576ad 100644 --- a/.github/workflows/build-test-macos-wallet-sync.yml +++ b/.github/workflows/build-test-macos-wallet-sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS wallet-sync Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-wallet.yml b/.github/workflows/build-test-macos-wallet.yml index fa5f21028a..c8afc10d5d 100644 --- a/.github/workflows/build-test-macos-wallet.yml +++ b/.github/workflows/build-test-macos-wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS wallet Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 40 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-macos-weight_proof.yml b/.github/workflows/build-test-macos-weight_proof.yml index 099b37529d..c09c039fc0 100644 --- a/.github/workflows/build-test-macos-weight_proof.yml +++ b/.github/workflows/build-test-macos-weight_proof.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS weight_proof Tests + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-blockchain.yml b/.github/workflows/build-test-ubuntu-blockchain.yml index 44ae181ad5..30aa4b83f3 100644 --- a/.github/workflows/build-test-ubuntu-blockchain.yml +++ b/.github/workflows/build-test-ubuntu-blockchain.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu blockchain Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-clvm.yml b/.github/workflows/build-test-ubuntu-clvm.yml index ee7c24ea9d..486fc78f7a 100644 --- a/.github/workflows/build-test-ubuntu-clvm.yml +++ b/.github/workflows/build-test-ubuntu-clvm.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu clvm Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-core-cmds.yml b/.github/workflows/build-test-ubuntu-core-cmds.yml index ef7e77acd9..c3f6c13368 100644 --- a/.github/workflows/build-test-ubuntu-core-cmds.yml +++ b/.github/workflows/build-test-ubuntu-core-cmds.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-cmds Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-core-consensus.yml b/.github/workflows/build-test-ubuntu-core-consensus.yml index 3f3ceba222..3eeb13ccdc 100644 --- a/.github/workflows/build-test-ubuntu-core-consensus.yml +++ b/.github/workflows/build-test-ubuntu-core-consensus.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-consensus Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-core-custom_types.yml b/.github/workflows/build-test-ubuntu-core-custom_types.yml index e0bc3b06ab..25ee1e4eaf 100644 --- a/.github/workflows/build-test-ubuntu-core-custom_types.yml +++ b/.github/workflows/build-test-ubuntu-core-custom_types.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-custom_types Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-core-daemon.yml b/.github/workflows/build-test-ubuntu-core-daemon.yml index fe5be278bb..5622829ca8 100644 --- a/.github/workflows/build-test-ubuntu-core-daemon.yml +++ b/.github/workflows/build-test-ubuntu-core-daemon.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-daemon Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-core-full_node-full_sync.yml b/.github/workflows/build-test-ubuntu-core-full_node-full_sync.yml index ac4553c55b..fb819785dd 100644 --- a/.github/workflows/build-test-ubuntu-core-full_node-full_sync.yml +++ b/.github/workflows/build-test-ubuntu-core-full_node-full_sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-full_node-full_sync Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-core-full_node-stores.yml b/.github/workflows/build-test-ubuntu-core-full_node-stores.yml index 9a86369c95..faff4bffec 100644 --- a/.github/workflows/build-test-ubuntu-core-full_node-stores.yml +++ b/.github/workflows/build-test-ubuntu-core-full_node-stores.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-full_node-stores Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 40 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-core-full_node.yml b/.github/workflows/build-test-ubuntu-core-full_node.yml index 37f34b7342..53443a8d67 100644 --- a/.github/workflows/build-test-ubuntu-core-full_node.yml +++ b/.github/workflows/build-test-ubuntu-core-full_node.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-full_node Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 50 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-core-server.yml b/.github/workflows/build-test-ubuntu-core-server.yml index c8c25fae66..0332a8ddf0 100644 --- a/.github/workflows/build-test-ubuntu-core-server.yml +++ b/.github/workflows/build-test-ubuntu-core-server.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-server Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-core-ssl.yml b/.github/workflows/build-test-ubuntu-core-ssl.yml index cad6e5f6df..df62c56d4f 100644 --- a/.github/workflows/build-test-ubuntu-core-ssl.yml +++ b/.github/workflows/build-test-ubuntu-core-ssl.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-ssl Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-core-util.yml b/.github/workflows/build-test-ubuntu-core-util.yml index 45dca55879..5ac35e8721 100644 --- a/.github/workflows/build-test-ubuntu-core-util.yml +++ b/.github/workflows/build-test-ubuntu-core-util.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core-util Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-core.yml b/.github/workflows/build-test-ubuntu-core.yml index ce93b59977..afccda6dd4 100644 --- a/.github/workflows/build-test-ubuntu-core.yml +++ b/.github/workflows/build-test-ubuntu-core.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu core Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-farmer_harvester.yml b/.github/workflows/build-test-ubuntu-farmer_harvester.yml index f33955daab..7b0f579a91 100644 --- a/.github/workflows/build-test-ubuntu-farmer_harvester.yml +++ b/.github/workflows/build-test-ubuntu-farmer_harvester.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu farmer_harvester Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-generator.yml b/.github/workflows/build-test-ubuntu-generator.yml index d756ac86f8..ea4dede57f 100644 --- a/.github/workflows/build-test-ubuntu-generator.yml +++ b/.github/workflows/build-test-ubuntu-generator.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu generator Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-plot_sync.yml b/.github/workflows/build-test-ubuntu-plot_sync.yml index 0b94b52c2f..335fc92341 100644 --- a/.github/workflows/build-test-ubuntu-plot_sync.yml +++ b/.github/workflows/build-test-ubuntu-plot_sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu plot_sync Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-plotting.yml b/.github/workflows/build-test-ubuntu-plotting.yml index 199aca1033..6e411bb2f6 100644 --- a/.github/workflows/build-test-ubuntu-plotting.yml +++ b/.github/workflows/build-test-ubuntu-plotting.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu plotting Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-pools.yml b/.github/workflows/build-test-ubuntu-pools.yml index 27560361d3..9e99bdc68b 100644 --- a/.github/workflows/build-test-ubuntu-pools.yml +++ b/.github/workflows/build-test-ubuntu-pools.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu pools Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-simulation.yml b/.github/workflows/build-test-ubuntu-simulation.yml index ce4b7399e0..c0a463f82c 100644 --- a/.github/workflows/build-test-ubuntu-simulation.yml +++ b/.github/workflows/build-test-ubuntu-simulation.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu simulation Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-tools.yml b/.github/workflows/build-test-ubuntu-tools.yml index 81739366ea..e9538ee0ae 100644 --- a/.github/workflows/build-test-ubuntu-tools.yml +++ b/.github/workflows/build-test-ubuntu-tools.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu tools Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-util.yml b/.github/workflows/build-test-ubuntu-util.yml index 65d085d101..bf8538acfb 100644 --- a/.github/workflows/build-test-ubuntu-util.yml +++ b/.github/workflows/build-test-ubuntu-util.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu util Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: diff --git a/.github/workflows/build-test-ubuntu-wallet-cat_wallet.yml b/.github/workflows/build-test-ubuntu-wallet-cat_wallet.yml index 947c7f9555..7904380bd2 100644 --- a/.github/workflows/build-test-ubuntu-wallet-cat_wallet.yml +++ b/.github/workflows/build-test-ubuntu-wallet-cat_wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu wallet-cat_wallet Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 50 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-wallet-did_wallet.yml b/.github/workflows/build-test-ubuntu-wallet-did_wallet.yml index cd5904a3cd..607bff3602 100644 --- a/.github/workflows/build-test-ubuntu-wallet-did_wallet.yml +++ b/.github/workflows/build-test-ubuntu-wallet-did_wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu wallet-did_wallet Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-wallet-rl_wallet.yml b/.github/workflows/build-test-ubuntu-wallet-rl_wallet.yml index c096ac3827..3c4478bcf5 100644 --- a/.github/workflows/build-test-ubuntu-wallet-rl_wallet.yml +++ b/.github/workflows/build-test-ubuntu-wallet-rl_wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu wallet-rl_wallet Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/build-test-ubuntu-wallet-rpc.yml b/.github/workflows/build-test-ubuntu-wallet-rpc.yml index 8ae873c87d..249fccc769 100644 --- a/.github/workflows/build-test-ubuntu-wallet-rpc.yml +++ b/.github/workflows/build-test-ubuntu-wallet-rpc.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu wallet-rpc Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-wallet-simple_sync.yml b/.github/workflows/build-test-ubuntu-wallet-simple_sync.yml index 05ac1584e2..db270a7a33 100644 --- a/.github/workflows/build-test-ubuntu-wallet-simple_sync.yml +++ b/.github/workflows/build-test-ubuntu-wallet-simple_sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu wallet-simple_sync Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-wallet-sync.yml b/.github/workflows/build-test-ubuntu-wallet-sync.yml index b33b079d2e..80ce08fd99 100644 --- a/.github/workflows/build-test-ubuntu-wallet-sync.yml +++ b/.github/workflows/build-test-ubuntu-wallet-sync.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu wallet-sync Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 60 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-wallet.yml b/.github/workflows/build-test-ubuntu-wallet.yml index 26e7f3de33..78238d8aac 100644 --- a/.github/workflows/build-test-ubuntu-wallet.yml +++ b/.github/workflows/build-test-ubuntu-wallet.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu wallet Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 40 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-ubuntu-weight_proof.yml b/.github/workflows/build-test-ubuntu-weight_proof.yml index bdb33432a1..12a4b58cb3 100644 --- a/.github/workflows/build-test-ubuntu-weight_proof.yml +++ b/.github/workflows/build-test-ubuntu-weight_proof.yml @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu weight_proof Test + if: true runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: @@ -76,13 +77,20 @@ jobs: ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + - name: Run install script env: INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} diff --git a/.github/workflows/build-test-windows-blockchain.yml b/.github/workflows/build-test-windows-blockchain.yml new file mode 100644 index 0000000000..f49e50da19 --- /dev/null +++ b/.github/workflows/build-test-windows-blockchain.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows blockchain Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows blockchain Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_blockchain + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test blockchain code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/blockchain/test_blockchain.py tests/blockchain/test_blockchain_transactions.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-clvm.yml b/.github/workflows/build-test-windows-clvm.yml new file mode 100644 index 0000000000..3d1ff5a4ca --- /dev/null +++ b/.github/workflows/build-test-windows-clvm.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows clvm Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows clvm Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_clvm + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test clvm code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/clvm/test_chialisp_deserialization.py tests/clvm/test_clvm_compilation.py tests/clvm/test_clvm_step.py tests/clvm/test_program.py tests/clvm/test_puzzle_compression.py tests/clvm/test_puzzles.py tests/clvm/test_serialized_program.py tests/clvm/test_singletons.py tests/clvm/test_spend_sim.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-cmds.yml b/.github/workflows/build-test-windows-core-cmds.yml new file mode 100644 index 0000000000..4d7230f5f0 --- /dev/null +++ b/.github/workflows/build-test-windows-core-cmds.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-cmds Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-cmds Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-cmds + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-cmds code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/cmds/test_keys.py tests/core/cmds/test_wallet.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-consensus.yml b/.github/workflows/build-test-windows-core-consensus.yml new file mode 100644 index 0000000000..063e7d85a1 --- /dev/null +++ b/.github/workflows/build-test-windows-core-consensus.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-consensus Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-consensus Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-consensus + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-consensus code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/consensus/test_pot_iterations.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-custom_types.yml b/.github/workflows/build-test-windows-core-custom_types.yml new file mode 100644 index 0000000000..8507d47ff6 --- /dev/null +++ b/.github/workflows/build-test-windows-core-custom_types.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-custom_types Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-custom_types Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-custom_types + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-custom_types code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/custom_types/test_coin.py tests/core/custom_types/test_proof_of_space.py tests/core/custom_types/test_spend_bundle.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-daemon.yml b/.github/workflows/build-test-windows-core-daemon.yml new file mode 100644 index 0000000000..82eca00243 --- /dev/null +++ b/.github/workflows/build-test-windows-core-daemon.yml @@ -0,0 +1,133 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-daemon Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-daemon Test + if: false + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-daemon + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + + - name: Install timelord + run: | + . ./activate + sh install-timelord.sh -n + ./vdf_bench square_asm 400000 + + - name: Test core-daemon code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/core/daemon/test_daemon.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-full_node-full_sync.yml b/.github/workflows/build-test-windows-core-full_node-full_sync.yml new file mode 100644 index 0000000000..e3e64cdfeb --- /dev/null +++ b/.github/workflows/build-test-windows-core-full_node-full_sync.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-full_node-full_sync Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-full_node-full_sync Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-full_node-full_sync + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-full_node-full_sync code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/full_node/full_sync/test_full_sync.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-full_node-stores.yml b/.github/workflows/build-test-windows-core-full_node-stores.yml new file mode 100644 index 0000000000..bbc42d1135 --- /dev/null +++ b/.github/workflows/build-test-windows-core-full_node-stores.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-full_node-stores Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-full_node-stores Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 40 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-full_node-stores + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-full_node-stores code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/full_node/stores/test_block_store.py tests/core/full_node/stores/test_coin_store.py tests/core/full_node/stores/test_full_node_store.py tests/core/full_node/stores/test_hint_store.py tests/core/full_node/stores/test_sync_store.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-full_node.yml b/.github/workflows/build-test-windows-core-full_node.yml new file mode 100644 index 0000000000..bd302d9b3d --- /dev/null +++ b/.github/workflows/build-test-windows-core-full_node.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-full_node Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-full_node Test + if: false + runs-on: ${{ matrix.os }} + timeout-minutes: 50 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-full_node + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-full_node code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/full_node/test_address_manager.py tests/core/full_node/test_block_height_map.py tests/core/full_node/test_conditions.py tests/core/full_node/test_full_node.py tests/core/full_node/test_generator_tools.py tests/core/full_node/test_hint_management.py tests/core/full_node/test_mempool.py tests/core/full_node/test_mempool_performance.py tests/core/full_node/test_node_load.py tests/core/full_node/test_peer_store_resolver.py tests/core/full_node/test_performance.py tests/core/full_node/test_transactions.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-server.yml b/.github/workflows/build-test-windows-core-server.yml new file mode 100644 index 0000000000..742bc400dd --- /dev/null +++ b/.github/workflows/build-test-windows-core-server.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-server Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-server Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-server + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-server code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/core/server/test_dos.py tests/core/server/test_rate_limits.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-ssl.yml b/.github/workflows/build-test-windows-core-ssl.yml new file mode 100644 index 0000000000..9bb1e8aeb7 --- /dev/null +++ b/.github/workflows/build-test-windows-core-ssl.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-ssl Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-ssl Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-ssl + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-ssl code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/ssl/test_ssl.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core-util.yml b/.github/workflows/build-test-windows-core-util.yml new file mode 100644 index 0000000000..46e5eb3e66 --- /dev/null +++ b/.github/workflows/build-test-windows-core-util.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core-util Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core-util Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core-util + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core-util code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/util/test_cached_bls.py tests/core/util/test_config.py tests/core/util/test_db_wrapper.py tests/core/util/test_file_keyring_synchronization.py tests/core/util/test_files.py tests/core/util/test_jsonify.py tests/core/util/test_keychain.py tests/core/util/test_keyring_wrapper.py tests/core/util/test_lru_cache.py tests/core/util/test_significant_bits.py tests/core/util/test_streamable.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-core.yml b/.github/workflows/build-test-windows-core.yml new file mode 100644 index 0000000000..902eae28dc --- /dev/null +++ b/.github/workflows/build-test-windows-core.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows core Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows core Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_core + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test core code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/core/test_coins.py tests/core/test_cost_calculation.py tests/core/test_crawler_rpc.py tests/core/test_daemon_rpc.py tests/core/test_db_conversion.py tests/core/test_db_validation.py tests/core/test_farmer_harvester_rpc.py tests/core/test_filter.py tests/core/test_full_node_rpc.py tests/core/test_merkle_set.py tests/core/test_setproctitle.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-farmer_harvester.yml b/.github/workflows/build-test-windows-farmer_harvester.yml new file mode 100644 index 0000000000..eaa36e303f --- /dev/null +++ b/.github/workflows/build-test-windows-farmer_harvester.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows farmer_harvester Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows farmer_harvester Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_farmer_harvester + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test farmer_harvester code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/farmer_harvester/test_farmer_harvester.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-generator.yml b/.github/workflows/build-test-windows-generator.yml new file mode 100644 index 0000000000..ba04681d57 --- /dev/null +++ b/.github/workflows/build-test-windows-generator.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows generator Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows generator Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_generator + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test generator code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/generator/test_compression.py tests/generator/test_generator_types.py tests/generator/test_list_to_batches.py tests/generator/test_rom.py tests/generator/test_scan.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-plot_sync.yml b/.github/workflows/build-test-windows-plot_sync.yml new file mode 100644 index 0000000000..7ba27f2a74 --- /dev/null +++ b/.github/workflows/build-test-windows-plot_sync.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows plot_sync Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows plot_sync Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_plot_sync + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test plot_sync code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/plot_sync/test_delta.py tests/plot_sync/test_plot_sync.py tests/plot_sync/test_receiver.py tests/plot_sync/test_sender.py tests/plot_sync/test_sync_simulated.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-plotting.yml b/.github/workflows/build-test-windows-plotting.yml new file mode 100644 index 0000000000..841ffe1c26 --- /dev/null +++ b/.github/workflows/build-test-windows-plotting.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows plotting Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows plotting Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_plotting + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test plotting code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/plotting/test_plot_manager.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-pools.yml b/.github/workflows/build-test-windows-pools.yml new file mode 100644 index 0000000000..93dcb77ef1 --- /dev/null +++ b/.github/workflows/build-test-windows-pools.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows pools Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows pools Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_pools + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test pools code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/pools/test_pool_cmdline.py tests/pools/test_pool_config.py tests/pools/test_pool_puzzles_lifecycle.py tests/pools/test_pool_rpc.py tests/pools/test_pool_wallet.py tests/pools/test_wallet_pool_store.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-simulation.yml b/.github/workflows/build-test-windows-simulation.yml new file mode 100644 index 0000000000..3719787b31 --- /dev/null +++ b/.github/workflows/build-test-windows-simulation.yml @@ -0,0 +1,133 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows simulation Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows simulation Test + if: false + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_simulation + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + + - name: Install timelord + run: | + . ./activate + sh install-timelord.sh -n + ./vdf_bench square_asm 400000 + + - name: Test simulation code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/simulation/test_simulation.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-tools.yml b/.github/workflows/build-test-windows-tools.yml new file mode 100644 index 0000000000..fdf8c5a1b5 --- /dev/null +++ b/.github/workflows/build-test-windows-tools.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows tools Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows tools Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_tools + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test tools code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/tools/test_full_sync.py tests/tools/test_run_block.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-util.yml b/.github/workflows/build-test-windows-util.yml new file mode 100644 index 0000000000..1123a69347 --- /dev/null +++ b/.github/workflows/build-test-windows-util.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows util Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows util Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_util + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test util code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/util/test_chunks.py tests/util/test_full_block_utils.py tests/util/test_lock_queue.py tests/util/test_misc.py tests/util/test_network.py tests/util/test_network_protocol_files.py tests/util/test_paginator.py tests/util/test_struct_stream.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-wallet-cat_wallet.yml b/.github/workflows/build-test-windows-wallet-cat_wallet.yml new file mode 100644 index 0000000000..5f0637c345 --- /dev/null +++ b/.github/workflows/build-test-windows-wallet-cat_wallet.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows wallet-cat_wallet Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows wallet-cat_wallet Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 50 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-cat_wallet + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test wallet-cat_wallet code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/cat_wallet/test_cat_lifecycle.py tests/wallet/cat_wallet/test_cat_wallet.py tests/wallet/cat_wallet/test_offer_lifecycle.py tests/wallet/cat_wallet/test_trades.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-wallet-did_wallet.yml b/.github/workflows/build-test-windows-wallet-did_wallet.yml new file mode 100644 index 0000000000..316280a7ab --- /dev/null +++ b/.github/workflows/build-test-windows-wallet-did_wallet.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows wallet-did_wallet Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows wallet-did_wallet Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-did_wallet + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test wallet-did_wallet code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/did_wallet/test_did.py tests/wallet/did_wallet/test_did_rpc.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-wallet-rl_wallet.yml b/.github/workflows/build-test-windows-wallet-rl_wallet.yml new file mode 100644 index 0000000000..d8d1788b7a --- /dev/null +++ b/.github/workflows/build-test-windows-wallet-rl_wallet.yml @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows wallet-rl_wallet Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows wallet-rl_wallet Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-rl_wallet + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +# Omitted checking out blocks and plots repo Chia-Network/test-cache + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test wallet-rl_wallet code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/rl_wallet/test_rl_rpc.py tests/wallet/rl_wallet/test_rl_wallet.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-wallet-rpc.yml b/.github/workflows/build-test-windows-wallet-rpc.yml new file mode 100644 index 0000000000..27974c9f2b --- /dev/null +++ b/.github/workflows/build-test-windows-wallet-rpc.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows wallet-rpc Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows wallet-rpc Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-rpc + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test wallet-rpc code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/rpc/test_wallet_rpc.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-wallet-simple_sync.yml b/.github/workflows/build-test-windows-wallet-simple_sync.yml new file mode 100644 index 0000000000..22c5a81e2f --- /dev/null +++ b/.github/workflows/build-test-windows-wallet-simple_sync.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows wallet-simple_sync Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows wallet-simple_sync Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-simple_sync + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test wallet-simple_sync code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/simple_sync/test_simple_sync_protocol.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-wallet-sync.yml b/.github/workflows/build-test-windows-wallet-sync.yml new file mode 100644 index 0000000000..e53ac956c0 --- /dev/null +++ b/.github/workflows/build-test-windows-wallet-sync.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows wallet-sync Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows wallet-sync Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-sync + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test wallet-sync code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/sync/test_wallet_sync.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-wallet.yml b/.github/workflows/build-test-windows-wallet.yml new file mode 100644 index 0000000000..eb40d5955d --- /dev/null +++ b/.github/workflows/build-test-windows-wallet.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows wallet Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows wallet Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 40 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test wallet code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/wallet/test_bech32m.py tests/wallet/test_chialisp.py tests/wallet/test_coin_selection.py tests/wallet/test_puzzle_store.py tests/wallet/test_singleton.py tests/wallet/test_singleton_lifecycle.py tests/wallet/test_singleton_lifecycle_fast.py tests/wallet/test_taproot.py tests/wallet/test_wallet.py tests/wallet/test_wallet_blockchain.py tests/wallet/test_wallet_interested_store.py tests/wallet/test_wallet_key_val_store.py tests/wallet/test_wallet_retry.py tests/wallet/test_wallet_store.py tests/wallet/test_wallet_user_store.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.github/workflows/build-test-windows-weight_proof.yml b/.github/workflows/build-test-windows-weight_proof.yml new file mode 100644 index 0000000000..f60ca99f99 --- /dev/null +++ b/.github/workflows/build-test-windows-weight_proof.yml @@ -0,0 +1,129 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows weight_proof Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows weight_proof Test + if: true + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_weight_proof + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache test blocks and plots + uses: actions/cache@v2 + id: test-blocks-plots + with: + path: | + ${{ github.workspace }}/.chia/blocks + ${{ github.workspace }}/.chia/test-plots + key: 0.29.0 + + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) + run: | + wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +# Omitted installing Timelord + + - name: Test weight_proof code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 2 -m "not benchmark" tests/weight_proof/test_weight_proof.py + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0555898b3d..57724f0e7f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: entry: ./tests/build-workflows.py --fail-on-update language: python pass_filenames: false + additional_dependencies: [typing-extensions] - id: check-sql name: Validate SQL statements entry: ./tests/check_sql_statements.py diff --git a/pytest.ini b/pytest.ini index 16e6d683a3..3478cea04a 100644 --- a/pytest.ini +++ b/pytest.ini @@ -23,3 +23,6 @@ filterwarnings = ignore:The loop argument is deprecated since Python 3\.8, and scheduled for removal in Python 3\.10.:DeprecationWarning ignore:The distutils package is deprecated:DeprecationWarning ignore:There is no current event loop:DeprecationWarning + ignore:getargs. The 'u' format is deprecated. Use 'U' instead.:DeprecationWarning + ignore:BackendFinder.find_spec\(\) not found; falling back to find_module\(\):ImportWarning + ignore:BackendLoader.exec_module\(\) not found; falling back to load_module\(\):ImportWarning diff --git a/tests/build-workflows.py b/tests/build-workflows.py index 2781c05e7a..ed261877f8 100755 --- a/tests/build-workflows.py +++ b/tests/build-workflows.py @@ -75,9 +75,15 @@ def generate_replacements(conf, dir): "TEST_FILES": "", "TEST_NAME": "", "PYTEST_PARALLEL_ARGS": "", + "RUN": "true", } - xdist_numprocesses = {False: 0, True: 4}.get(conf["parallel"], conf["parallel"]) + # TODO: design a configurable system for this + if os == "windows": + xdist_numprocesses = {False: 0, True: 2}.get(conf["parallel"], conf["parallel"]) + else: + xdist_numprocesses = {False: 0, True: 4}.get(conf["parallel"], conf["parallel"]) + replacements["PYTEST_PARALLEL_ARGS"] = f" -n {xdist_numprocesses}" if not conf["checkout_blocks_and_plots"]: @@ -100,6 +106,9 @@ def generate_replacements(conf, dir): replacements["CHECK_RESOURCE_USAGE"] = "# Omitted resource usage check" for var in conf["custom_vars"]: replacements[var] = conf[var] if var in conf else "" + if os in conf["os_skip"] or (conf["install_timelord"] and os == "windows"): + # TODO: enable timelord for windows, and stop skipping + replacements["RUN"] = "false" return replacements diff --git a/tests/core/full_node/config.py b/tests/core/full_node/config.py index 58f7edfd7a..e5b3ae6b5c 100644 --- a/tests/core/full_node/config.py +++ b/tests/core/full_node/config.py @@ -3,3 +3,4 @@ parallel = True job_timeout = 50 check_resource_usage = True checkout_blocks_and_plots = True +os_skip = ["windows"] diff --git a/tests/core/full_node/full_sync/test_full_sync.py b/tests/core/full_node/full_sync/test_full_sync.py index 65fddf4d81..07c1f8d171 100644 --- a/tests/core/full_node/full_sync/test_full_sync.py +++ b/tests/core/full_node/full_sync/test_full_sync.py @@ -44,9 +44,11 @@ class TestFullSync: PeerInfo(self_hostname, uint16(server_1._port)), on_connect=full_node_2.full_node.on_connect ) + timeout_seconds = 250 + # The second node should eventually catch up to the first one await time_out_assert( - 150, node_height_exactly, True, full_node_2, test_constants.WEIGHT_PROOF_RECENT_BLOCKS - 5 - 1 + timeout_seconds, node_height_exactly, True, full_node_2, test_constants.WEIGHT_PROOF_RECENT_BLOCKS - 5 - 1 ) for block in blocks[ @@ -58,8 +60,6 @@ class TestFullSync: PeerInfo(self_hostname, uint16(server_1._port)), on_connect=full_node_3.full_node.on_connect ) - timeout_seconds = 150 - # Node 3 and Node 2 sync up to node 1 await time_out_assert( timeout_seconds, node_height_exactly, True, full_node_2, test_constants.WEIGHT_PROOF_RECENT_BLOCKS + 5 - 1 diff --git a/tests/core/test_farmer_harvester_rpc.py b/tests/core/test_farmer_harvester_rpc.py index 083a8b8365..f65b7c1acd 100644 --- a/tests/core/test_farmer_harvester_rpc.py +++ b/tests/core/test_farmer_harvester_rpc.py @@ -426,7 +426,7 @@ def test_plot_matches_filter(filter_item: FilterItem, match: bool): ), (FarmerRpcClient.get_harvester_plots_invalid, [], None, True, 13), (FarmerRpcClient.get_harvester_plots_invalid, ["invalid_0"], None, False, 6), - (FarmerRpcClient.get_harvester_plots_invalid, ["inval", "lid_1/"], None, False, 2), + (FarmerRpcClient.get_harvester_plots_invalid, ["inval", "lid_1"], None, False, 2), (FarmerRpcClient.get_harvester_plots_keys_missing, [], None, True, 3), (FarmerRpcClient.get_harvester_plots_keys_missing, ["keys_missing_1"], None, False, 2), (FarmerRpcClient.get_harvester_plots_duplicates, [], None, True, 7), diff --git a/tests/pools/test_pool_config.py b/tests/pools/test_pool_config.py index 798d6071f6..b114eaf385 100644 --- a/tests/pools/test_pool_config.py +++ b/tests/pools/test_pool_config.py @@ -1,15 +1,13 @@ # flake8: noqa: E501 -from pathlib import Path - from blspy import AugSchemeMPL, PrivateKey from chia.pools.pool_config import PoolWalletConfig -from chia.util.config import load_config, lock_config, save_config, create_default_chia_config +from chia.util.config import create_default_chia_config, load_config, lock_config, save_config -def test_pool_config(): - test_root = Path("/tmp") - test_path = Path("/tmp/config") +def test_pool_config(tmp_path): + test_root = tmp_path + test_path = test_root / "config" eg_config = test_path / "config.yaml" to_config = test_path / "test_pool_config.yaml" diff --git a/tests/runner_templates/build-test-macos b/tests/runner_templates/build-test-macos index 26a039fd00..e43fb310cf 100644 --- a/tests/runner_templates/build-test-macos +++ b/tests/runner_templates/build-test-macos @@ -23,6 +23,7 @@ concurrency: jobs: build: name: MacOS TEST_NAME Tests + if: RUN runs-on: ${{ matrix.os }} timeout-minutes: JOB_TIMEOUT strategy: diff --git a/tests/runner_templates/build-test-ubuntu b/tests/runner_templates/build-test-ubuntu index 4e245cf368..ca93263c0e 100644 --- a/tests/runner_templates/build-test-ubuntu +++ b/tests/runner_templates/build-test-ubuntu @@ -23,6 +23,7 @@ concurrency: jobs: build: name: Ubuntu TEST_NAME Test + if: RUN runs-on: ${{ matrix.os }} timeout-minutes: JOB_TIMEOUT strategy: diff --git a/tests/runner_templates/build-test-windows b/tests/runner_templates/build-test-windows new file mode 100644 index 0000000000..6cfb6eb3a5 --- /dev/null +++ b/tests/runner_templates/build-test-windows @@ -0,0 +1,108 @@ +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# +name: Windows TEST_NAME Test + +on: + push: + branches: + - 'long_lived/**' + - main + - 'release/**' + tags: + - '**' + pull_request: + branches: + - '**' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + name: Windows TEST_NAME Test + if: RUN + runs-on: ${{ matrix.os }} + timeout-minutes: JOB_TIMEOUT + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [windows-latest] + env: + CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet + JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_TEST_NAME + + steps: + - name: Configure git + run: | + git config --global core.autocrlf false + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python environment + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Cache npm + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- + +CHECKOUT_TEST_BLOCKS_AND_PLOTS + + - name: Run install script + env: + INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} + run: | + ./Install.ps1 -d + +INSTALL_TIMELORD + + - name: Test TEST_NAME code with pytest + run: | + ./venv/Scripts/activate.ps1 + venv/Scripts/coverage run --rcfile=.coveragerc --module pytest --durations=10 PYTEST_PARALLEL_ARGS -m "not benchmark" TEST_FILES + + - name: Process coverage data + run: | + venv/Scripts/coverage combine --rcfile=.coveragerc + venv/Scripts/coverage xml --rcfile=.coveragerc -o coverage.xml + mkdir coverage_reports + cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}" + cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml" + venv/Scripts/coverage report --rcfile=.coveragerc --show-missing + + - name: Publish coverage + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage_reports/* + if-no-files-found: error + +# +# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme +# diff --git a/tests/runner_templates/checkout-test-plots.include.yml b/tests/runner_templates/checkout-test-plots.include.yml index af48e1a220..a511c81b1b 100644 --- a/tests/runner_templates/checkout-test-plots.include.yml +++ b/tests/runner_templates/checkout-test-plots.include.yml @@ -7,9 +7,16 @@ ${{ github.workspace }}/.chia/test-plots key: 0.29.0 - - name: Checkout test blocks and plots - if: steps.test-blocks-plots.outputs.cache-hit != 'true' + - name: Checkout test blocks and plots (Linux, macOS) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && (startswith(matrix.os, 'ubuntu') || startswith(matrix.os, 'macos')) run: | wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf - mkdir ${{ github.workspace }}/.chia mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia + + - name: Checkout test blocks and plots (Windows) + if: steps.test-blocks-plots.outputs.cache-hit != 'true' && startswith(matrix.os, 'windows') + run: | + Invoke-WebRequest -OutFile blocks_and_plots.zip https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.zip; Expand-Archive blocks_and_plots.zip -DestinationPath . + mkdir ${{ github.workspace }}/.chia + mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia diff --git a/tests/testconfig.py b/tests/testconfig.py index 72a3cedac7..8bf25da916 100644 --- a/tests/testconfig.py +++ b/tests/testconfig.py @@ -1,12 +1,12 @@ from __future__ import annotations -from typing import TYPE_CHECKING, List, Union +from typing import List, Union -if TYPE_CHECKING: - from typing_extensions import Literal +from typing_extensions import Literal +Oses = Literal["macos", "ubuntu", "windows"] # Github actions template config. -oses = ["ubuntu", "macos"] +oses: List[Oses] = ["macos", "ubuntu", "windows"] # Defaults are conservative. parallel: Union[bool, int, Literal["auto"]] = False @@ -15,3 +15,4 @@ install_timelord = False check_resource_usage = False job_timeout = 30 custom_vars: List[str] = [] +os_skip: List[Oses] = [] diff --git a/tests/util/test_network.py b/tests/util/test_network.py index d098628704..27757c5db6 100644 --- a/tests/util/test_network.py +++ b/tests/util/test_network.py @@ -17,8 +17,8 @@ class TestNetwork: @pytest.mark.asyncio @pytest.mark.skipif( - condition=("GITHUB_ACTIONS" in os.environ) and (sys.platform == "darwin"), - reason="macOS runners in GitHub Actions do not seem to support IPv6", + condition=("GITHUB_ACTIONS" in os.environ) and (sys.platform in {"darwin", "win32"}), + reason="macOS and Windows runners in GitHub Actions do not seem to support IPv6", ) async def test_get_host_addr6(self): # Run these tests forcing IPv6 resolution diff --git a/tests/wallet/rpc/test_wallet_rpc.py b/tests/wallet/rpc/test_wallet_rpc.py index b0155fabf1..79b179490a 100644 --- a/tests/wallet/rpc/test_wallet_rpc.py +++ b/tests/wallet/rpc/test_wallet_rpc.py @@ -68,7 +68,7 @@ class WalletRpcTestEnvironment: async def farm_transaction_block(full_node_api: FullNodeSimulator, wallet_node: WalletNode): await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(bytes32(b"\00" * 32))) - await time_out_assert(5, wallet_is_synced, True, wallet_node, full_node_api) + await time_out_assert(10, wallet_is_synced, True, wallet_node, full_node_api) async def farm_transaction(full_node_api: FullNodeSimulator, wallet_node: WalletNode, spend_bundle: SpendBundle): diff --git a/tests/wallet/simple_sync/test_simple_sync_protocol.py b/tests/wallet/simple_sync/test_simple_sync_protocol.py index bcbd59c5b7..41e5049f57 100644 --- a/tests/wallet/simple_sync/test_simple_sync_protocol.py +++ b/tests/wallet/simple_sync/test_simple_sync_protocol.py @@ -626,7 +626,7 @@ class TestSimpleSyncProtocol: await fn_server_1.start_client(PeerInfo(self_hostname, uint16(fn_server._port)), None) node0_height = full_node_api.full_node.blockchain.get_peak_height() - await time_out_assert(15, full_node_api_1.full_node.blockchain.get_peak_height, node0_height) + await time_out_assert(60, full_node_api_1.full_node.blockchain.get_peak_height, node0_height) all_messages = await get_all_messages_in_queue(incoming_queue) all_messages_1 = await get_all_messages_in_queue(incoming_queue_1) diff --git a/tests/wallet/test_wallet.py b/tests/wallet/test_wallet.py index 7c37c35ab3..4e1ad26cd6 100644 --- a/tests/wallet/test_wallet.py +++ b/tests/wallet/test_wallet.py @@ -86,7 +86,7 @@ class TestWalletSimulator: return False return True - await time_out_assert(10, check_tx_are_pool_farm_rewards, True) + await time_out_assert(20, check_tx_are_pool_farm_rewards, True) await time_out_assert(5, wallet.get_confirmed_balance, funds) @pytest.mark.parametrize( @@ -126,7 +126,7 @@ class TestWalletSimulator: [calculate_pool_reward(uint32(i)) + calculate_base_farmer_reward(uint32(i)) for i in range(1, num_blocks)] ) - await time_out_assert(5, wallet.get_confirmed_balance, funds) + await time_out_assert(10, wallet.get_confirmed_balance, funds) await time_out_assert(5, wallet.get_unconfirmed_balance, funds) tx = await wallet.generate_signed_transaction( @@ -627,7 +627,7 @@ class TestWalletSimulator: [calculate_pool_reward(uint32(i)) + calculate_base_farmer_reward(uint32(i)) for i in range(1, num_blocks)] ) - await time_out_assert(5, wallet.get_confirmed_balance, funds) + await time_out_assert(10, wallet.get_confirmed_balance, funds) await time_out_assert(5, wallet.get_unconfirmed_balance, funds) assert await wallet.get_confirmed_balance() == funds