Skip to content

Commit

Permalink
Add PyTest workflow for automated testing on multiple Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneholloman committed Nov 23, 2024
1 parent 76b9f7d commit 3bb7655
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: PyTest

on:
push:
branches: ['main']
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools chardet pathspec pytest
- name: Run tests
run: |
pytest -v tests/test_codemapper.py

0 comments on commit 3bb7655

Please sign in to comment.