Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ ENV=development
DEBUG=true

BEANS_LOGGING_DISABLE_DEFAULT=false
BEANS_LOGGING_CONFIG_PATH="./configs/logging.yml"
15 changes: 7 additions & 8 deletions .github/workflows/2.build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -r ./requirements.txt
python -m pip install pytest==7.3.1 pytest-cov==4.1.0
python -m pip install -r ./requirements.test.txt
- name: Test with pytest
run: python -m pytest -sv
run: ./scripts/test.sh

build_publish:
needs: test
Expand All @@ -49,16 +48,16 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install build==0.10.0 twine==4.0.2
python -m pip install -r ./requirements.build.txt
- name: Build and publish package
# run: |
# echo -e "[testpypi]\nusername = __token__\npassword = ${{ secrets.TEST_PYPI_API_TOKEN }}" > ~/.pypirc
# ./scripts/build.sh -c -t -u
# rm -rfv ~/.pypirc
run: |
echo -e "[pypi]\nusername = __token__\npassword = ${{ secrets.PYPI_API_TOKEN }}" > ~/.pypirc
./scripts/build.sh -c -t -u -p
rm -rfv ~/.pypirc
# run: |
# echo -e "[testpypi]\nusername = __token__\npassword = ${{ secrets.TEST_PYPI_API_TOKEN }}" > ~/.pypirc
# ./scripts/build.sh -c -t -u
# rm -rfv ~/.pypirc
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# beans_logging

[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/bybatkhuu/mod.python-logging/2.build-publish.yml?logo=GitHub)](https://github.com/bybatkhuu/mod.python-logging/actions/workflows/2.build-publish.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/bybatkhuu/mod.python-logging?logo=GitHub)](https://github.com/bybatkhuu/mod.python-logging/releases)
[![PyPI](https://img.shields.io/pypi/v/beans-logging?logo=PyPi)](https://pypi.org/project/beans-logging)
Expand Down Expand Up @@ -173,6 +174,7 @@ Run the [**`examples/simple`**](https://github.com/bybatkhuu/mod.python-logging/

```sh
cd ./examples/simple

python ./main.py
```

Expand Down Expand Up @@ -342,8 +344,8 @@ Output:
To run tests, run the following command:

```sh
# Install python development dependencies:
pip install -r ./requirements.dev.txt
# Install python test dependencies:
pip install -r ./requirements.test.txt

# Run tests:
python -m pytest -sv
Expand Down Expand Up @@ -400,6 +402,11 @@ logger:
extra:
```

## Documentation

- [docs](https://github.com/bybatkhuu/mod.python-logging/blob/main/docs/README.md)
- [scripts](https://github.com/bybatkhuu/mod.python-logging/blob/main/docs/scripts/README.md)

---

## References
Expand Down
Loading