Skip to content

Commit

Permalink
Refactor (#7)
Browse files Browse the repository at this point in the history
* folder structure changes

* Update .gitignore

* Update .gitignore

* exchange and tests

* typo

* tests

* exch

* deflator refactor

* clean tests

* lock and requirements

* tests

* most tests

* improve test coverage

* poetry update

* final tests

* Update test_deflate_function.py

* black

* updates to CI

* Update pyproject.toml
  • Loading branch information
jm-rivera authored Feb 19, 2023
1 parent 764c2ec commit 0940a1c
Show file tree
Hide file tree
Showing 89 changed files with 47,814 additions and 3,930 deletions.
6 changes: 1 addition & 5 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ replace = version = "{new_version}"

[bumpversion:file:pydeflate/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

[bumpversion:file:docs/source/conf.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'
replace = __version__ = '{new_version}'
24 changes: 0 additions & 24 deletions .editorconfig

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install Poetry
run: |
pip install poetry
poetry --version
- name: Install packages
run: |
poetry install
- name: Check formatting
run: |
make check-formatting
- name: Tests
run: |
make report-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
fail_ci_if_error: true
verbose: true
40 changes: 0 additions & 40 deletions .github/workflows/dev.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Build documentation
name: documentation

on:
workflow_dispatch:

jobs:
documentation:
runs-on: ubuntu-latest
name: Build documentation
steps:
- uses: actions/checkout@v2

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

- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install package
run: poetry install

- name: Build documentation
run: poetry run make html --directory docs/
47 changes: 0 additions & 47 deletions .github/workflows/preview.yml

This file was deleted.

13 changes: 7 additions & 6 deletions .github/workflows/release.yml → .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: release & publish
name: release

on:
push:
push:
tags:
- 'v*'
workflow_dispatch:
workflow_dispatch:

jobs:

Expand All @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-versions: ["3.9"]
python-versions: [ "3.10" ]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -23,6 +23,8 @@ jobs:
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash
- name: Get version from tag (new)
run: echo "{current_version}={${GITHUB_REF#refs/tags/v}}" >> $GITHUB_OUTPUT

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
Expand All @@ -34,8 +36,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry
pip install -r requirements.txt
poetry install
- name: Build wheels and source tarball
run: >-
poetry build
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@ dmypy.json
# MAC
.DS_Store
pydeflate/.DS_Store
pydeflate/.DS_Store
*.icloud

# DataSpell
.idea/

# Packaged data
/pydeflate/.pydeflate_data/
/.reports/
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py


# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
Loading

0 comments on commit 0940a1c

Please sign in to comment.