Skip to content

Commit

Permalink
test action v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakuhito committed May 6, 2024
1 parent 99dcf18 commit 28067aa
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28067aa

Please sign in to comment.