From 28067aa45f9f09972066192311f671f53bf5c517 Mon Sep 17 00:00:00 2001 From: yakuhito Date: Mon, 6 May 2024 19:15:14 +0300 Subject: [PATCH] test action v2 --- .github/workflows/tests.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e2b7dfd..9b0734f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,23 +11,37 @@ jobs: runs-on: ubuntu-latest steps: + - name: Clean workspace + uses: Chia-Network/actions/clean-workspace@main + - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - uses: Chia-Network/actions/setup-python@main + with: + python-version: '3.11' + + - name: Create 'test-plots' Directory + run: mkdir -p ~/.chia/test-plots + + - uses: Chia-Network/actions/create-venv@main + id: create-venv - - name: Set up Python - uses: actions/setup-python@v2 + - uses: Chia-Network/actions/activate-venv@main with: - python-version: 3.11 + directories: ${{ steps.create-venv.outputs.activate-venv-directories }} - name: Install Python dependencies run: | - python -m pip install --upgrade pip + python3 -m pip install --upgrade pip pip install --extra-index-url https://pypi.chia.net/simple/ chia-dev-tools==1.2.5 pip install -r requirements.txt - name: Run pytest run: | - python -m pytest + pytest tests/ -s -v --durations 0 -W ignore::DeprecationWarning - name: Set up Node.js uses: actions/setup-node@v2