Skip to content

Commit

Permalink
Merge pull request #7 from beekpr/FUL-47885-dep-bump
Browse files Browse the repository at this point in the history
Modernize for python 3 compatibility
  • Loading branch information
Secrus authored Aug 27, 2024
2 parents a0c17b1 + 8cc3830 commit e43365e
Show file tree
Hide file tree
Showing 13 changed files with 302 additions and 208 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Unit Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true

jobs:
unit-tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.6"]

steps:
- name: Checkout ${{ github.repository }} repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache-dependency-path: '**/setup.py'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install pytest mox3
python -m pip install -e .
- name: Run unit tests
run: python -m pytest
3 changes: 2 additions & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
install_requires=[
'decorator',
'webob >= 1.2b2',
'six >= 1.13.0',
],
tests_require=[
'nose',
'mox',
'mox3',
],
test_suite='nose.collector',
license='BSD',
Expand Down
Loading

0 comments on commit e43365e

Please sign in to comment.