Skip to content

Merge pull request #204 from serpapi/add-serpapi-plugin #243

Merge pull request #204 from serpapi/add-serpapi-plugin

Merge pull request #204 from serpapi/add-serpapi-plugin #243

Workflow file for this run

name: Python CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ format('ci-{0}', github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run unittest tests with coverage
run: |
pytest --cov=autogpt_plugins --cov-report term-missing --cov-branch --cov-report xml --cov-report term
env:
CI: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3