You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
547 B
31 lines
547 B
11 months ago
|
name: Pull Request Checks
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Set up Python
|
||
|
uses: actions/setup-python@v5
|
||
|
with:
|
||
|
python-version: 3.x
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
pip install -r requirements.txt
|
||
|
pip install swarms
|
||
|
pip install pytest
|
||
|
|
||
|
- name: Run tests and checks
|
||
|
run: |
|
||
|
pytest
|
||
|
pylint swarms
|