Create python-package.yml

Signed-off-by: lb1107039128 <liubo1@xfusion.com>
This commit is contained in:
lb1107039128 2023-12-22 16:07:41 +08:00
parent 485713b62d
commit de5c253d1e
2 changed files with 54 additions and 2 deletions

View File

@ -0,0 +1,47 @@
From d4046b3d1a5e73eb0b570f0253c9a03059f4bf9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= <jelmer@jelmer.uk>
Date: Fri, 17 Nov 2023 17:27:25 +0000
Subject: [PATCH] Create python-package.yml
---
.github/workflows/python-package.yml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 .github/workflows/python-package.yml
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
new file mode 100644
index 0000000..f604dd2
--- /dev/null
+++ b/.github/workflows/python-package.yml
@@ -0,0 +1,28 @@
+name: Python package
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v3
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install testtools
+ - name: Test with testtools
+ run: |
+ python -m testtools.run extras.tests.test_suite
--
2.42.0.windows.2

View File

@ -1,12 +1,14 @@
Name: python-extras
Version: 1.0.0
Release: 6
Release: 7
Summary: A set of extensions to the python standard library
License: MIT
URL: https://github.com/testing-cabal/extras
Source0: https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz
BuildArch: noarch
Patch0001: 0001-Create-python-package.yml.patch
%description
python-extras is a set of extensions to the standard library.
@ -27,7 +29,7 @@ BuildRequires: python3-devel python3-setuptools python3-testtools
python3-extras is a set of extensions to the standard library.
%prep
%autosetup -n extras-%{version}
%autosetup -n extras-%{version} -p1
rm -vrf *.egg-info
%build
%py2_build
@ -50,5 +52,8 @@ rm -vrf *.egg-info
%{python3_sitelib}/extras-*.egg-info/
%changelog
* Fri Dec 22 2023 liubo <liubo1@xfusion.com> - 1.0.0-7
- Create python-package.yml
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 1.0.0-6
- Package init