Skip to content

Commit

Permalink
Improved cross-python compatibility and added Github Actions matrix s…
Browse files Browse the repository at this point in the history
…trategy

The setup.py script has been updated to ensure 'virtualenv' is only required for Python 2. Additionally, this script now more accurately specifies the versions of Python that are supported. In addition to these changes, the Github Actions workflow file is updated to use a matrix strategy to test against multiple versions of Python. Lastly, the project version number is updated and various functional improvements made in the codebase for better maintenability.
  • Loading branch information
dvershinin committed Dec 19, 2023
1 parent ad98467 commit a8bd85d
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 139 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies will speed up subsequent runs

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion pip_safe/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.11"
__version__ = "0.0.12"
Loading

0 comments on commit a8bd85d

Please sign in to comment.