Skip to content

Commit

Permalink
Update tests.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe authored Oct 23, 2023
1 parent aaef395 commit 94e25cc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
name: Python tests
runs-on: ubuntu-latest

env:
CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet
CHIA_SIMULATOR_ROOT: ${{ github.workspace }}/.chia/simulator
BLOCKS_AND_PLOTS_VERSION: 0.33.0

steps:
- name: Clean workspace
uses: Chia-Network/actions/clean-workspace@main
Expand Down Expand Up @@ -50,16 +55,16 @@ jobs:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: 0.35.0
key: ${{ env.BLOCKS_AND_PLOTS_VERSION }}

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download 0.35.0 -R Chia-Network/test-cache --archive=tar.gz -O - | tar xzf -
gh release download ${{ env.BLOCKS_AND_PLOTS_VERSION }} -R Chia-Network/test-cache --archive=tar.gz -O - | tar xzf -
mkdir "${GITHUB_WORKSPACE}/.chia"
mv "${GITHUB_WORKSPACE}/test-cache-0.35.0/"* "${GITHUB_WORKSPACE}/.chia"
mv "${GITHUB_WORKSPACE}/test-cache-${{ env.BLOCKS_AND_PLOTS_VERSION }}/"* "${GITHUB_WORKSPACE}/.chia"
echo "${GITHUB_WORKSPACE}/.chia"
ls -l "${GITHUB_WORKSPACE}/.chia"
ls -l "${GITHUB_WORKSPACE}/.chia/test-plots"
Expand All @@ -68,6 +73,4 @@ jobs:
env:
MODE: dev
PYTHONPATH: ".:./chia-blockchain"
run: |
python -c "import sys;print(sys.path)"
python -m pytest -k "not TestActivities" tests
run: python -m pytest -k "not TestActivities" tests

0 comments on commit 94e25cc

Please sign in to comment.