diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..1f4e239f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,36 @@ +name: Package tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + test: + name: Test pfd-gste on Python 3.12 + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v6 + with: + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + + - name: Install package and test dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e ".[test]" + + - name: Run package tests + run: python -m pytest -q diff --git a/README.md b/README.md index bd9b6383..b8df5a3e 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) ![Python](https://img.shields.io/badge/Python-3.12.2-blue.svg) [![PyPI version](https://img.shields.io/pypi/v/pfd-gste.svg)](https://pypi.org/project/pfd-gste/) +[![Package tests](https://github.com/AnnyaB/HybridResNet50V2-RViT/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/AnnyaB/HybridResNet50V2-RViT/actions/workflows/tests.yml) ![PyTorch](https://img.shields.io/badge/PyTorch-Research%20Code-ee4c2c.svg) ![Medical AI](https://img.shields.io/badge/Medical%20AI-Brain%20MRI-1f6feb.svg) ![Explainable AI](https://img.shields.io/badge/XAI-Grad--CAM%2B%2B%20%7C%20Attention%20Rollout-6f42c1.svg)