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.
37 lines
645 B
37 lines
645 B
11 months ago
|
name: build
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ main ]
|
||
|
pull_request:
|
||
|
branches: [ main ]
|
||
|
|
||
|
jobs:
|
||
|
|
||
|
build:
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
|
||
|
- name: Setup Python
|
||
|
uses: actions/setup-python@v5
|
||
|
with:
|
||
|
python-version: '3.9'
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
pip install -r requirements.txt
|
||
|
pip install pytest
|
||
|
pip install swarms
|
||
|
|
||
|
- name: Run Python unit tests
|
||
|
run: pytest
|
||
|
|
||
|
- name: Verify that the Docker image for the action builds
|
||
|
run: docker build . --file Dockerfile
|
||
|
|
||
|
- name: Verify integration test results
|
||
|
run: pytest
|