This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
[bugfix] remove useless codes #544
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
# 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 mlora | |
isort mlora --profile black | |
flake8 mlora --show-source --statistics --max-line-length=128 --max-complexity 15 --ignore=E203,W503,E722 | |
- name: Run tests | |
run: | | |
pytest |