Skip to content

Commit ccc41c4

Browse files
authored
Merge pull request #10 from febus982/matrix-tests
Use matrix for python versions
2 parents 7316dad + 2e16baf commit ccc41c4

File tree

7 files changed

+18
-105
lines changed

7 files changed

+18
-105
lines changed

.github/workflows/python-3.10.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/python-3.11.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/python-3.12.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/python-3.8.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/python-3.9.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

4+
name: Python tests
45

56
on:
6-
workflow_call:
7-
inputs:
8-
python-version:
9-
required: true
10-
type: string
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
1113

1214
jobs:
1315
test:
14-
runs-on: ubuntu-latest
15-
16+
strategy:
17+
matrix:
18+
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
19+
os: [ubuntu-latest]
20+
runs-on: ${{ matrix.os }}
1621
steps:
1722
- uses: actions/checkout@v3
18-
- name: Set up Python ${{ inputs.python-version }}
23+
- name: Set up Python ${{ matrix.version }}
1924
uses: actions/setup-python@v4
2025
with:
21-
python-version: "${{ inputs.python-version }}"
26+
python-version: "${{ matrix.version }}"
2227
- name: Install dependencies
2328
run: |
2429
python -m pip install --upgrade pip
@@ -31,3 +36,4 @@ jobs:
3136
- name: Check typing
3237
run: |
3338
make typing
39+

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# bootstrap-python-package
2+
![Static Badge](https://img.shields.io/badge/Python-3.8_%7C_3.9_%7C_3.10_%7C_3.11_%7C_3.12-blue?logo=python&logoColor=white)
23
[![Stable Version](https://img.shields.io/pypi/v/bootstrap-python-package?color=blue)](https://pypi.org/project/bootstrap-python-package/)
34
[![stability-beta](https://img.shields.io/badge/stability-beta-33bbff.svg)](https://github.com/mkenney/software-guides/blob/master/STABILITY-BADGES.md#beta)
45

5-
[![Python 3.8](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.8.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.8.yml)
6-
[![Python 3.9](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.9.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.9.yml)
7-
[![Python 3.10](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.10.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.10.yml)
8-
[![Python 3.11](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.11.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.11.yml)
9-
[![Python 3.12](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.12.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-3.12.yml)
6+
[![Python tests](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-tests.yml)
107
[![Bandit checks](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-bandit.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-bandit.yml)
11-
128
[![Maintainability](https://api.codeclimate.com/v1/badges/593e78ec96ed5ebb0dd3/maintainability)](https://codeclimate.com/github/febus982/bootstrap-python-package/maintainability)
139
[![Test Coverage](https://api.codeclimate.com/v1/badges/593e78ec96ed5ebb0dd3/test_coverage)](https://codeclimate.com/github/febus982/bootstrap-python-package/test_coverage)
10+
1411
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
1512
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1613
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)

0 commit comments

Comments
 (0)