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.
swarms/.github/workflows/unit-test.yml

36 lines
618 B

2 years ago
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2 years ago
- name: Setup Python
uses: actions/setup-python@v5
2 years ago
with:
1 year ago
python-version: '3.9'
2 years ago
- name: Install dependencies
1 year ago
run: |
pip install -r requirements.txt
pip install pytest
2 years ago
- name: Run Python unit tests
1 year ago
run: pytest
2 years ago
- name: Verify that the Docker image for the action builds
run: docker build . --file Dockerfile
- name: Verify integration test results
1 year ago
run: pytest