Skip to content

Commit

Permalink
Create pytest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilJl authored Jun 19, 2024
1 parent 682ff21 commit 079e13b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Pytest

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8' # Change to the version of Python you are using

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt # If you have a requirements.txt file
- name: Run Pytest
run: |
pytest tests/test_optimask.py

0 comments on commit 079e13b

Please sign in to comment.