Skip to content

Commit

Permalink
Merge pull request #22 from sopherapps/ft-documentation
Browse files Browse the repository at this point in the history
Ft documentation
  • Loading branch information
Tinitto authored Dec 29, 2022
2 parents 18ad16a + f397d11 commit 39adc36
Show file tree
Hide file tree
Showing 77 changed files with 4,988 additions and 1,073 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Build
run: |
python -m build
- name: Deploy docs
run: |
mkdocs gh-deploy -c
- name: Upload to pypi
run: |
twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} dist/*
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [0.4.3] - 2022-12-29

### Added

- Added mkdocs documentation

### Changed

### Fixed

- Fixed docs building in CI

## [0.4.2] - 2022-12-29

### Added
Expand Down
44 changes: 44 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,50 @@ People *love* thorough bug reports. I'm not even kidding.

By contributing, you agree that your contributions will be licensed under its MIT License.

## How to test

- Clone the repo and enter its root folder

```bash
git clone https://github.com/sopherapps/pydantic-redis.git && cd pydantic-redis
```

- Create a virtual environment and activate it

```bash
virtualenv -p /usr/bin/python3.6 env && source env/bin/activate
```

- Install the dependencies

```bash
pip install -r requirements.txt
```

- Run the pre-commit installation

```bash
pre-commit install
```

- Run the tests command

```bash
pytest --benchmark-disable
```

- Run benchmarks

```bash
pytest --benchmark-compare --benchmark-autosave
```

- Or run to get benchmarks summary

```shell
pytest test/test_benchmarks.py --benchmark-columns=mean,min,max --benchmark-name=short
```

## References

This document was adapted from [a gist by Brian A. Danielak](https://gist.github.com/briandk/3d2e8b3ec8daf5a27a62) which
Expand Down
Loading

0 comments on commit 39adc36

Please sign in to comment.