main
Kye 2 years ago
parent eb2dc24cb5
commit e0e50ac07f

@ -1,4 +1,4 @@
name: Python application test name: build
on: on:
push: push:
@ -7,23 +7,36 @@ on:
branches: [ main ] branches: [ main ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up Python 3.8 - name: Run Python unit tests
uses: actions/setup-python@v2 run: python3 -u -m unittest unittesting/agent/swarms.py
- name: Verify that the Docker image for the action builds
run: docker build . --file Dockerfile
- name: Integration test 1
uses: ./
with: with:
python-version: 3.8 input-one: something
input-two: true
- name: Install dependencies - name: Integration test 2
run: | uses: ./
python -m pip install --upgrade pip with:
pip install -r requirements.txt input-one: something else
input-two: false
- name: Run tests - name: Verify integration test results
run: | run: python3 -u -m unittest unittesting/agent/swarms.py
python -m unittest unittesting/agent/swarms.py
Loading…
Cancel
Save