Metric refactor #337
Workflow file for this run
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
# only has to pass for python 3.9 | |
name: PyTest Unit Tests | |
on: | |
push: | |
branches: | |
main | |
pull_request: | |
branches: | |
main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
cache: 'pip' | |
# Display the Python version being used | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install Requirements | |
run: | | |
pip install --upgrade pip | |
pip install $(grep -v '^torchdata\|^torchtext\|^torcheval' requirements.txt) | |
- name: Run Tests | |
run: pytest tests/* | |
- name: Clearing pip for space | |
run: pip uninstall -y -r requirements.txt |