Skip to content

Fix package

Fix package #8

Workflow file for this run

name: repository2prompt CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cython pyyaml -r requirements.txt
- name: Run tests
run: |
python -m unittest discover tests
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
flake8 repository2prompt tests --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 repository2prompt tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics