Skip to content

install pytest in workflows #2

install pytest in workflows

install pytest in workflows #2

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- 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: Install pytest
run: pip install pytest
- name: Run Unit Tests
run: pytest --junitxml=test-results.xml
- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
name: Test Results
path: test-results.xml