Skip to content

Commit

Permalink
Merge pull request #26 from JacksonBurns/version-test-dev
Browse files Browse the repository at this point in the history
add enhanced CI for python versions
  • Loading branch information
JacksonBurns authored Aug 11, 2022
2 parents fa72f0b + f3abab3 commit d9e8399
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run_macos_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run Unix Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
name: Mac OS Python ${{ matrix.python-version }} Subtest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Dependencies
run: |
python -m pip install -e .
python -m pip install coverage
- name: Compile Sambvca21
run: |
gfortran-10 -o sambvca21.x test/sambvca21.f
- name: Run Tests
run: |
coverage run --source=. --omit=py2sambvca/__init__.py,setup.py,test/* -m unittest discover
- name: Show Coverage
run: |
coverage report -m
10 changes: 10 additions & 0 deletions .github/workflows/run_unix_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: Ubuntu Python ${{ matrix.python-version }} Subtest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Dependencies
run: |
python -m pip install -e .
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/run_windows_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@ on:
jobs:
build:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: Windows Python ${{ matrix.python-version }} Subtest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Dependencies
run: |
python -m pip install -e .
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
![PyPI](https://img.shields.io/pypi/v/py2sambvca)
![PyPI - License](https://img.shields.io/pypi/l/py2sambvca)
![commits since](https://img.shields.io/github/commits-since/JacksonBurns/py2sambvca/latest.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py2sambvca)


Simple thin client to interface python scripts with SambVca catalytic pocket Fortran calculator.

## Installation
`py2sambvca` is available on PyPi and can be installed like so:
`py2sambvca` is available on PyPI and can be installed like so:
```python
pip install py2sambvca
```
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get_version(rel_path):
# This call to setup() does all the work
setup(
name="py2sambvca",
python_requires='>=3.6',
version=get_version("py2sambvca/__init__.py"),
description="Simple thin client to interface python scripts with SambVca catalytic pocket Fortran calculator.",
long_description=README,
Expand All @@ -36,7 +37,11 @@ def get_version(rel_path):
author="Jackson Burns",
license="GNU GPLv3",
classifiers=[
"Programming Language :: Python :: 3"
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
packages=["py2sambvca"],
include_package_data=True
Expand Down

0 comments on commit d9e8399

Please sign in to comment.