unit tests #171
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 tests | |
on: | |
workflow_dispatch: | |
push: | |
schedule: | |
- cron: "0 21 * * 6" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install pip --upgrade | |
python -m pip install -r requirements.txt | |
python -m pip install pytest hypothesis torchnyan | |
python -m pip install git+https://github.com/speedcell4/torchrua.git@develop --force-reinstall --no-deps | |
python -m pip install pytorch-crf torch-struct | |
- name: Test with pytest | |
run: | | |
python -m pytest tests |