Skip to content

Commit

Permalink
update joss
Browse files Browse the repository at this point in the history
  • Loading branch information
pswpswpsw committed Oct 5, 2023
1 parent c80fef5 commit e3c734c
Show file tree
Hide file tree
Showing 78 changed files with 19,153 additions and 19,102 deletions.
2 changes: 1 addition & 1 deletion .git_archival.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ref-names: $Format:%D$
ref-names: $Format:%D$
10 changes: 5 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Interpret Jupyter notebooks as Python
*.ipynb linguist-language=Python

# For automatic versioning via setuptools_scm_git_archive
.git_archival.txt export-subst
# Interpret Jupyter notebooks as Python
*.ipynb linguist-language=Python

# For automatic versioning via setuptools_scm_git_archive
.git_archival.txt export-subst
44 changes: 22 additions & 22 deletions .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
on: [push]

jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: docs/JOSS/paper.md
- name: Upload
uses: actions/upload-artifact@v1
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
on: [push]

jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: docs/JOSS/paper.md
- name: Upload
uses: actions/upload-artifact@v1
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: docs/JOSS/paper.pdf
60 changes: 30 additions & 30 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Release
on:
release:
types:
- published

jobs:
release:
name: Deploy release to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.12

- name: Install dependencies
run: python -m pip install wheel twine

- name: Build package
run: python -m build

- name: Upload package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
name: Release
on:
release:
types:
- published

jobs:
release:
name: Deploy release to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.12

- name: Install dependencies
run: python -m pip install wheel twine

- name: Build package
run: python -m build

- name: Upload package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
102 changes: 51 additions & 51 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
name: Tests

on: [push, pull_request]

jobs:
Linting:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.10.12
uses: actions/setup-python@v3
with:
python-version: 3.10.12
- name: Linting
run: |
pip install pre-commit
pre-commit run --all-files
Linux:
needs: Linting
runs-on: ubuntu-latest
strategy:
max-parallel: 8
matrix:
python-version: [3.10.12]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Test with pytest
run: |
py.test test
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
name: Tests

on: [push, pull_request]

jobs:
Linting:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.10.12
uses: actions/setup-python@v3
with:
python-version: 3.10.12
- name: Linting
run: |
pip install pre-commit
pre-commit run --all-files
Linux:
needs: Linting
runs-on: ubuntu-latest
strategy:
max-parallel: 8
matrix:
python-version: [3.10.12]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Test with pytest
run: |
py.test test
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
78 changes: 39 additions & 39 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
build
dist
*.egg-info
# automatically generated by setuptools-scm
pysindy/version.py
# sphinx gallery files
docs/examples
# virtual environment
venv

# eggs
.eggs

dev

**/*cache*

.coverage
coverage.xml

.idea

docs/api
docs/_build

.ipynb_checkpoints
*/.ipynb_checkpoints/*
*/lightning_logs/*
lightning_logs
.DS_Store
.vscode

*.pyc

*.sublime*

Pipfile
Pipfile.lock
/htmlcov/
build
dist
*.egg-info
# automatically generated by setuptools-scm
pysindy/version.py
# sphinx gallery files
docs/examples
# virtual environment
venv

# eggs
.eggs

dev

**/*cache*

.coverage
coverage.xml

.idea

docs/api
docs/_build

.ipynb_checkpoints
*/.ipynb_checkpoints/*
*/lightning_logs/*
lightning_logs
.DS_Store
.vscode

*.pyc

*.sublime*

Pipfile
Pipfile.lock
/htmlcov/
52 changes: 26 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Settings for pre-commit
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
args: ["--maxkb=102400"]
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/ambv/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ["--config=setup.cfg"]
# Settings for pre-commit
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
args: ["--maxkb=102400"]
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/ambv/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ["--config=setup.cfg"]
Loading

0 comments on commit e3c734c

Please sign in to comment.