Skip to content

Commit

Permalink
Add tests automated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joserapa98 committed May 9, 2024
1 parent 98634a4 commit 08dc85a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run tests

on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
workflow_dispatch:

jobs:
tests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: python -m pip install --upgrade pip torch opt_einsum
- name: Install pytest
run: pip install pytest pytest-cov
- name: Test components
run: pytest tests/test_components.py --cov=tensorkrowch
- name: Test operations
run: pytest tests/test_operations.py --cov=tensorkrowch
- name: Test embeddings
run: pytest tests/test_embeddings.py --cov=tensorkrowch
- name: Test decompositions
run: pytest tests/decompositions/ --cov=tensorkrowch
- name: Test MPS
run: pytest tests/models/test_mps.py --cov=tensorkrowch
- name: Test MPO
run: pytest tests/models/test_mpo.py --cov=tensorkrowch
- name: Test PEPS
run: pytest tests/models/test_peps.py --cov=tensorkrowch
- name: Test Tree
run: pytest tests/models/test_tree.py --cov=tensorkrowch

0 comments on commit 08dc85a

Please sign in to comment.