Skip to content

create test workflow in github #1

create test workflow in github

create test workflow in github #1

Workflow file for this run

name: Run tests on merge
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout the repository code
- name: Checkout code
uses: actions/checkout@v3
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Use the Python version your project needs
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Assuming you have a requirements.txt
pip install pytest
# Run tests using pytest
- name: Run tests
run: |
pytest --maxfail=1 --disable-warnings