Skip to content

Added test-on-pr.yml to run tests when a PR targets main branch #2

Added test-on-pr.yml to run tests when a PR targets main branch

Added test-on-pr.yml to run tests when a PR targets main branch #2

Workflow file for this run

name: Test on Pull Request
on:
pull_request:
branches:
- main
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 pytest setuptools wheel twine
- name: Run tests
# env:
# AIMON_API_KEY: ${{ secrets.AIMON_API_KEY }}
run: |
pytest tests/