-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Issue #120: refactoring code * Issue #120: added github actions * Issue #120: improved .gitignore and README.md
- Loading branch information
1 parent
6e6a30c
commit 145096d
Showing
23 changed files
with
207 additions
and
389 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Python application | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y libemail-outlook-message-perl | ||
pip install ".[dev, test]" | ||
export PERL_MM_USE_DEFAULT=1 | ||
sudo cpan -f -i Email::Outlook::Message | ||
- name: Run tests | ||
run: | | ||
pytest | ||
python -m mailparser -v | ||
python -m mailparser -h | ||
mail-parser -f tests/mails/mail_malformed_3 -j | ||
cat tests/mails/mail_malformed_3 | mail-parser -k -j | ||
- name: Report to Coveralls | ||
if: matrix.python-version == '3.10' | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build | ||
if: matrix.python-version == '3.10' | ||
run: | | ||
python -m build | ||
- name: Upload artifacts | ||
if: matrix.python-version == '3.10' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-artifacts | ||
path: | | ||
dist/mail-parser-*.tar.gz | ||
dist/mail_parser-*.whl |
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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
!.gitkeep | ||
.*.swp | ||
.coverage | ||
.env | ||
.ropeproject | ||
.tox/ | ||
.vscode | ||
# python_template defaults | ||
/env/ | ||
/build/ | ||
/dist/ | ||
*.egg-info | ||
*.pyc | ||
build/ | ||
dist/ | ||
mail_parser.egg-info/ | ||
venv | ||
venv27 | ||
venv3 | ||
venv-mailparser | ||
report/ | ||
/pip-wheel-metadata/ | ||
.pytest_cache/ | ||
coverage.xml | ||
coverage.json | ||
.coverage | ||
htmlcov/ | ||
.mypy_cache/ | ||
.eggs/ | ||
.*.tgt | ||
.idea/ | ||
.vscode/ | ||
junit.xml | ||
/venv/ | ||
/__pycache__/ | ||
/*.egg-info/ | ||
.DS_Store | ||
VERSION |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.