Skip to content

[feature] refactoring unit tests (#9) #16

[feature] refactoring unit tests (#9)

[feature] refactoring unit tests (#9) #16

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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test on Main
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install -e .
pip3 install black isort flake8 pytest
- name: Code lint
run: |
black mixlora
isort mixlora --profile black
flake8 mixlora --show-source --statistics --max-line-length=128 --max-complexity 15 --ignore=E203,W503,E722
- name: Run tests
run: |
pytest