Skip to content
Closed

Ci #146

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# SPDX-FileCopyrightText: 2025 The python-scsi Authors
#
# SPDX-License-Identifier: MIT

name: Python Tests

on:
push:
branches:
- main # Trigger on push to the main branch (or adjust for other branches)
pull_request:
branches:
- main # Trigger on pull requests to the main branch
Comment on lines +10 to +13

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be master rather than main?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, my mistake


jobs:
test:
runs-on: ubuntu-latest # Use an Ubuntu runner

strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13] # Python versions for the matrix
include:
- python-version: 3.8
pytest-mypy: "--mypy"
- python-version: 3.9
pytest-mypy: "--mypy"
- python-version: 3.10
pytest-mypy: "--mypy"
- python-version: 3.11
pytest-mypy: "--mypy"
- python-version: 3.12
pytest-mypy: "--mypy"
- python-version: 3.13
pytest-mypy: "--mypy"

steps:
- name: Checkout repository
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 .[dev]

- name: Run tests
run: |
py.test -vvv ${{ matrix.pytest-mypy }}
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
Loading