-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use src layout and update pyproject.toml
Signed-off-by: Patrick ZAJDA <[email protected]>
- Loading branch information
Showing
6 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
with: | ||
filters: | | ||
docfiles: | ||
- 'pysmsboxnet/*.py' | ||
- 'src/pysmsboxnet/*.py' | ||
- 'docs/**' | ||
- 'requirements_doc.txt' | ||
|
@@ -52,9 +52,9 @@ jobs: | |
pip install -e . | ||
- name: 🖤 Lint with Black | ||
run: venv/bin/black pysmsboxnet tests --check | ||
run: venv/bin/black src tests --check | ||
- name: 🖤 Lint with Flake8 | ||
run: venv/bin/flake8 pysmsboxnet tests | ||
run: venv/bin/flake8 src tests | ||
- name: Pre-commit cache | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -85,14 +85,14 @@ jobs: | |
check-latest: true | ||
|
||
- name: 📦 Install dependencies | ||
run: pip3 install -r requirements_test.txt | ||
run: pip3 install -r requirements_test.txt -e . | ||
|
||
- name: 🏃 Run tests | ||
run: pytest tests | ||
|
||
- name: Run code coverage | ||
if: ${{ matrix.python-version == '3.10' }} | ||
run: pytest --cov=./pysmsboxnet --cov-report=xml tests | ||
run: pytest --cov=./src --cov-report=xml tests | ||
|
||
- name: upload to codecov | ||
if: ${{ matrix.python-version == '3.10' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.