Skip to content

Commit

Permalink
chore: Add GitHub actions workflow for running pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
hollenstein committed Sep 20, 2024
1 parent 02e164c commit 1752e47
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will install the xlsxreport package and its dependencies and run pytest with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Run pytest
on:
push:
branches: ["main", "develop", "test-ci"]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[tests]
- name: Test with pytest
run: |
python -m pytest

0 comments on commit 1752e47

Please sign in to comment.