Prepare v2.0.0 (#19) #53
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: CI | |
on: [push, pull_request] | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
- uses: actions/[email protected] | |
- run: python -m pip install --upgrade black | |
- run: black --check . | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
- uses: actions/[email protected] | |
- run: python -m pip install flake8 | |
- run: flake8 | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- uses: actions/[email protected] | |
- run: python -m pip install cryptography isort==5.6.4 | |
- run: isort --diff --check lora tests | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, "3.10", 3.11] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/[email protected] | |
- run: python -m pip install discover cryptography==3.2 | |
- run: discover |