From 4183a17781a13ff9dcb0ef8fcf263fd7a242c521 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Sun, 19 Nov 2023 09:28:17 +0800 Subject: [PATCH] fix: update CI script --- .github/workflows/build.yml | 17 ++++++++--------- setup.py | 3 +++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48f1e44..754405c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,9 @@ name: build on: push: - branches: - - master + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: test: @@ -12,8 +11,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ] - os: [ ubuntu-18.04, macOS-latest, windows-latest ] + python-version: ['3.9', '3.10', '3.11'] + os: [ubuntu-latest, macOS-latest, windows-latest] steps: - name: Checkout @@ -78,17 +77,17 @@ jobs: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' - name: Setup run: npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator semantic-release-pypi - name: Set up python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.11 - name: Install setuptools run: python -m pip install --upgrade setuptools wheel twine diff --git a/setup.py b/setup.py index d0181d8..7262f1d 100644 --- a/setup.py +++ b/setup.py @@ -42,6 +42,9 @@ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", ],