Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
paulvxx committed Feb 10, 2024
1 parent b6faeaa commit 95dab95
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,34 @@ on:
branches: [ "pypackage_task26" ]

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Add pymgm to PYTHONPATH
run: echo "PYTHONPATH=${{ github.workspace }}/pymgm" >> $GITHUB_ENV

- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
- name: Run pytest
run: |
export PYTHONPATH=./pymgm:$PYTHONPATH
pytest ./pymgm/test/
shell: bash
- name: Build package
run: python -m build
pytest
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "pymgm"
version = "0.1.0"
description = "An open source python package for implementing the MGM method for elliptic equations on point cloud surfaces"
authors = [
{name = "Grady Wright", email = "gradywright@boisestat.edu"}
]
license = "MIT"
readme = "README.md"
keywords = ["MGM", "elliptic equations", "point cloud"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

0 comments on commit 95dab95

Please sign in to comment.