Skip to content

Commit

Permalink
Merge pull request #17 from Chia-Network/wallentx/tests
Browse files Browse the repository at this point in the history
Adding ci tests
  • Loading branch information
wallentx authored Nov 22, 2022
2 parents 0784d9a + 9e708f0 commit 75a4826
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Test Suite

on:
workflow_dispatch:
push:
branches:
- main
tags:
- '**'
pull_request:
branches:
- '**'

jobs:
build:
name: All tests
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
max-parallel: 4

steps:
- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Test code with pytest
run: |
python3 -m venv venv
. ./venv/bin/activate
pip install --extra-index https://pypi.chia.net/simple/ --editable .[dev]
pytest tests/test_mint.py

0 comments on commit 75a4826

Please sign in to comment.