Skip to content

Commit

Permalink
support python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang committed Feb 14, 2024
1 parent 557af11 commit 96d1f0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/cicd.yml
Expand Up @@ -24,6 +24,7 @@ name: tests

env:
APP_NAME: uw_hrp
COVERAGE_PYTHON_VERSION: '3.10'

on:
push:
Expand All @@ -37,7 +38,7 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout Repo
Expand All @@ -46,13 +47,13 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.10'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install commonconf nose2 coverage coveralls==2.2.0
pip install commonconf nose2 coverage coveralls==3.3.1
- name: Run Python Linters
uses: uw-it-aca/actions/python-linters@main
Expand All @@ -62,7 +63,7 @@ jobs:
- name: Run Tests
run: |
python -m compileall ${APP_NAME}/
coverage run ${APP_NAME}/test.py -v
python -Wd -m coverage run ${APP_NAME}/test.py -v
- name: Report Test Coverage
env:
Expand All @@ -75,7 +76,7 @@ jobs:

needs: test

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout Repo
Expand All @@ -84,7 +85,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.10'

- name: Publish to PyPi
uses: uw-it-aca/actions/publish-pypi@main
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@
[![Build Status](https://github.com/uw-it-aca/uw-restclients-hrp/workflows/tests/badge.svg?branch=main)](https://github.com/uw-it-aca/uw-restclients-hrp/actions)
[![Coverage Status](https://coveralls.io/repos/uw-it-aca/uw-restclients-hrp/badge.svg?branch=main)](https://coveralls.io/r/uw-it-aca/uw-restclients-hrp?branch=main)
[![PyPi Version](https://img.shields.io/pypi/v/uw-restclients-hrp.svg)](https://pypi.python.org/pypi/uw-restclients-hrp)
![Python versions](https://img.shields.io/pypi/pyversions/uw-restclients-hrp.svg)
![Python versions](https://img.shields.io/badge/python-3.10-blue.svg)

Installation:

Expand Down
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -20,7 +20,7 @@
name='UW-RestClients-HRP',
version=VERSION,
packages=['uw_hrp'],
author="UW-IT AXDD",
author="UW-IT T&LS",
author_email="aca-it@uw.edu",
include_package_data=True,
install_requires=[
Expand All @@ -36,6 +36,5 @@
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
],
)

0 comments on commit 96d1f0b

Please sign in to comment.