mirror of
https://github.com/RustyRaptor/PassioGo.git
synced 2026-12-03 23:55:16 -07:00
33 lines
674 B
YAML
33 lines
674 B
YAML
# This workflow runs pytest on various Python versions when there is a push
|
|
|
|
|
|
name: Testing Package
|
|
|
|
on: push
|
|
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
- name: Test with pytest
|
|
run: |
|
|
pip install pytest pytest-cov
|
|
pytest |