feat: qfasm support parameter #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit test | |
on: | |
push: | |
pull_request: | |
branches: [master] | |
jobs: | |
unnittest: | |
name: Unit test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.10' | |
- name: Install dependency | |
run: python -m pip install -r requirements.txt && python -m pip install pytest | |
# TODO(zhaoyilun): Build seperate package for pyquafu-torch | |
- name: Install torch | |
run: python -m pip install torch torchvision torchaudio | |
- name: Install pyquafu | |
run: python setup.py develop | |
- name: Run unit tests | |
run: pytest tests/ |