Skip to content

Add CI pipeline

Add CI pipeline #2

Workflow file for this run

name: Python test and build
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest api_tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
- name: Archive code coverage results
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: test-results
path: junit/test-results.xml