Skip to content

Refactor and add tests ! #6

Refactor and add tests !

Refactor and add tests ! #6

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
pip install pytest pytest-cov coveralls pytest-sugar
- name: Run Tests
run: |
pytest --doctest-modules --cov=yaltai --verbose