oriasirmi/AutoGPT
0
1name: Python CI2 3on:4 push:5 branches: [master]6 pull_request:7 branches: [master]8 9concurrency:10 group: ${{ format('ci-{0}', format('pr-{0}', github.event.pull_request.number) || github.sha) }}11 cancel-in-progress: ${{ github.event_name == 'pull_request' }}12 13jobs:14 lint:15 runs-on: ubuntu-latest16 env:17 min-python-version: '3.10'18 19 steps:20 - name: Check out repository21 uses: actions/checkout@v322 23 - name: Set up Python ${{ env.min-python-version }}24 uses: actions/setup-python@v225 with:26 python-version: ${{ env.min-python-version }}27 28 - name: Install dependencies29 run: |30 python -m pip install --upgrade pip31 pip install -r requirements.txt32 33 - name: Lint with flake834 run: flake835 36 - name: Check black formatting37 run: black . --check38 if: success() || failure()39 40 - name: Check isort formatting41 run: isort . --check42 if: success() || failure()43 44 test:45 runs-on: ubuntu-latest46 strategy:47 matrix:48 python-version: ['3.10', '3.11']49 50 steps:51 - name: Check out repository52 uses: actions/checkout@v353 54 - name: Set up Python ${{ matrix.python-version }}55 uses: actions/setup-python@v256 with:57 python-version: ${{ matrix.python-version }}58 59 - name: Install dependencies60 run: |61 python -m pip install --upgrade pip62 pip install -r requirements.txt63 64 - name: Run unittest tests with coverage65 run: |66 pytest --cov=autogpt --without-integration --without-slow-integration67 68 - name: Generate coverage report69 run: |70 coverage report71 coverage xml72 if: success() || failure()73 