Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DeutscheGabanna committed Feb 28, 2024
2 parents c9439ca + 07693d5 commit 72c6fa9
Show file tree
Hide file tree
Showing 36 changed files with 464 additions and 378 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
name: Pylint
on: [ pull_request ]

on: [push]

jobs:
lint:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pipenv
- run: python -m pip install --upgrade pipenv wheel
- run: pipenv install --dev
- uses: pr-annotators/pylint-pr-annotator@main
- name: Analysing the code with pylint
run: pipenv run pylint $(git ls-files '*.py')
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
find . -name '*.py' -exec pylint {} --fail-under=8 \;
pylint_exit_code=$?
if [ $pylint_exit_code -ne 0 ]; then
echo "Pylint check failed with exit code $pylint_exit_code"
exit $pylint_exit_code
fi
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ _tests/files/output-results
/.idea/workspace.xml
/.idea/usage.statistics.xml
/.idea/shelf
/.vscode
/.vscode
/.idea/inspectionProfiles/Project_Default.xml
/.idea/Obsidian-Daylio-Parser.bak.iml
4 changes: 4 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ name = "pypi"
[packages]

[dev-packages]
coverage = "*"
pylint = "*"

[requires]
python_version = "3.12"
125 changes: 5 additions & 120 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions _tests/empty_sheet.csv
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
full_date,date,weekday,time,mood,activities,note_title,note
2022-10-30,October 30,Sunday,10:04 AM,vaguely ok,2ćities skylines | dó#lóó fa$$s_ą%,"Dolomet","Lorem ipsum sit dolomet amęt."
2022-10-27,October 27,Thursday,1:49 PM,vaguely good,chess,"Cras pretium","Lorem ipsum dolor sit amet, consectetur adipiscing elit."
2022-10-27,October 27,Thursday,12:00 AM,fatigued,allegro | working remotely,"Suspendisse sit amet","Phaśellus pharetra justo ac dui lacinia ullamcorper."
2022-10-26,October 26,Wednesday,10:00 PM,captivated,at the office | board game | colleague interaction | big social gathering,,"Sed ut est interdum","Maecenas dictum augue in nibh pellentesque porttitor."
2022-10-26,October 26,Wednesday,8:00 PM,tired,allegro | at the office | board game | colleague interaction | big social gathering,"Mauris rutrum diam","Quisque dictum odio quis augue consectetur, at convallis żodio aliquam."
2022-10-26,October 26,Wednesday,7:30 PM,grateful,allegro | at the office | acknowledged efforts | colleague interaction,"Aliquam nec sem semper","Nulla aćcumsan sem sit amet lectus pretium, ac interdum tellus porta."
2022-10-26,October 26,Wednesday,1:00 PM,blissful,allegro | at the office,"Vestibulum sagittis leo eu sodales","Ut et elit id lectus hendrerit ełementum quis auctor ipsum."
2022-10-26,October 26,Wednesday,9:00 AM,in awe,allegro | at the office | outdoors | notable event,"Integer elementum","Nunc lobortis enim eu nisi ultrices, sit amet sagittis lacus venenatis."
2022-10-26,October 26,Wednesday,7:50 AM,lifeless,podcast | politics | world event,"Nulla quis lectus pulvinar","Etiam commódo enim ut orci varius viverra."
2022-10-25,October 25,Tuesday,11:36 PM,hungry,allegro | working remotely | colleague interaction,"Mauris vitae nunc vel arcu consequat auctor","Nulla vel risus eget magna lacinia aliquam ac in arcu."
2022-10-25,October 25,Tuesday,11:40 PM,rad,,,Uet nulla nunc lobortis quisque.
2022-10-25,October 25,Tuesday,5:00 PM,vaguely ok,,,
13 changes: 0 additions & 13 deletions _tests/expected_results/2022-10-25.md
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
---
tags: daily
---

## hungry | 11:36 PM | Mauris vitae nunc vel arcu consequat auctor
#allegro #working-remotely #colleague-interaction
Nulla vel risus eget magna lacinia aliquam ac in arcu.

## rad | 11:40 PM
Uet nulla nunc lobortis quisque.

## vaguely ok | 5:00 PM

28 changes: 0 additions & 28 deletions _tests/expected_results/2022-10-26.md
Original file line number Diff line number Diff line change
@@ -1,28 +0,0 @@
---
tags: daily
---

## captivated | 10:00 PM
#at-the-office #board-game #colleague-interaction #big-social-gathering
Sed ut est interdum

## tired | 8:00 PM | Mauris rutrum diam
#allegro #at-the-office #board-game #colleague-interaction #big-social-gathering
Quisque dictum odio quis augue consectetur, at convallis żodio aliquam.

## grateful | 7:30 PM | Aliquam nec sem semper
#allegro #at-the-office #acknowledged-efforts #colleague-interaction
Nulla aćcumsan sem sit amet lectus pretium, ac interdum tellus porta.

## blissful | 1:00 PM | Vestibulum sagittis leo eu sodales
#allegro #at-the-office
Ut et elit id lectus hendrerit ełementum quis auctor ipsum.

## in awe | 9:00 AM | Integer elementum
#allegro #at-the-office #outdoors #notable-event
Nunc lobortis enim eu nisi ultrices, sit amet sagittis lacus venenatis.

## lifeless | 7:50 AM | Nulla quis lectus pulvinar
#podcast #politics #world-event
Etiam commódo enim ut orci varius viverra.

12 changes: 0 additions & 12 deletions _tests/expected_results/2022-10-27.md
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
---
tags: daily
---

## vaguely good | 1:49 PM | Cras pretium
#chess
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

## fatigued | 12:00 AM | Suspendisse sit amet
#allegro #working-remotely
Phaśellus pharetra justo ac dui lacinia ullamcorper.

8 changes: 0 additions & 8 deletions _tests/expected_results/2022-10-30.md
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
---
tags: daily
---

## vaguely ok | 10:04 AM | Dolomet
#2ćities-skylines #dólóó-fas_ą
Lorem ipsum sit dolomet amęt.

13 changes: 13 additions & 0 deletions _tests/files/expected_results/2022-10-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
tags: daily
---

## hungry | 11:36 PM | Mauris vitae nunc vel arcu consequat auctor
#allegro #working-remotely #colleague-interaction
Nulla vel risus eget magna lacinia aliquam ac in arcu.

## rad | 11:40 PM
Uet nulla nunc lobortis quisque.

## vaguely ok | 5:00 PM

28 changes: 28 additions & 0 deletions _tests/files/expected_results/2022-10-26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
tags: daily
---

## captivated | 10:00 PM
#at-the-office #board-game #colleague-interaction #big-social-gathering
Sed ut est interdum

## tired | 8:00 PM | Mauris rutrum diam
#allegro #at-the-office #board-game #colleague-interaction #big-social-gathering
Quisque dictum odio quis augue consectetur, at convallis żodio aliquam.

## grateful | 7:30 PM | Aliquam nec sem semper
#allegro #at-the-office #acknowledged-efforts #colleague-interaction
Nulla aćcumsan sem sit amet lectus pretium, ac interdum tellus porta.

## blissful | 1:00 PM | Vestibulum sagittis leo eu sodales
#allegro #at-the-office
Ut et elit id lectus hendrerit ełementum quis auctor ipsum.

## in awe | 9:00 AM | Integer elementum
#allegro #at-the-office #outdoors #notable-event
Nunc lobortis enim eu nisi ultrices, sit amet sagittis lacus venenatis.

## lifeless | 7:50 AM | Nulla quis lectus pulvinar
#podcast #politics #world-event
Etiam commódo enim ut orci varius viverra.

12 changes: 12 additions & 0 deletions _tests/files/expected_results/2022-10-27.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
tags: daily
---

## vaguely good | 1:49 PM | Cras pretium
#chess
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

## fatigued | 12:00 AM | Suspendisse sit amet
#allegro #working-remotely
Phaśellus pharetra justo ac dui lacinia ullamcorper.

8 changes: 8 additions & 0 deletions _tests/files/expected_results/2022-10-30.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
tags: daily
---

## vaguely ok | 10:04 AM | Dolomet
#2ćities-skylines #dólóó-fas_ą
Lorem ipsum sit dolomet amęt.

13 changes: 13 additions & 0 deletions _tests/files/journal_CSVs/empty_sheet.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
full_date,date,weekday,time,mood,activities,note_title,note
2022-10-30,October 30,Sunday,10:04 AM,vaguely ok,2ćities skylines | dó#lóó fa$$s_ą%,"Dolomet","Lorem ipsum sit dolomet amęt."
2022-10-27,October 27,Thursday,1:49 PM,vaguely good,chess,"Cras pretium","Lorem ipsum dolor sit amet, consectetur adipiscing elit."
2022-10-27,October 27,Thursday,12:00 AM,fatigued,allegro | working remotely,"Suspendisse sit amet","Phaśellus pharetra justo ac dui lacinia ullamcorper."
2022-10-26,October 26,Wednesday,10:00 PM,captivated,at the office | board game | colleague interaction | big social gathering,,"Sed ut est interdum","Maecenas dictum augue in nibh pellentesque porttitor."
2022-10-26,October 26,Wednesday,8:00 PM,tired,allegro | at the office | board game | colleague interaction | big social gathering,"Mauris rutrum diam","Quisque dictum odio quis augue consectetur, at convallis żodio aliquam."
2022-10-26,October 26,Wednesday,7:30 PM,grateful,allegro | at the office | acknowledged efforts | colleague interaction,"Aliquam nec sem semper","Nulla aćcumsan sem sit amet lectus pretium, ac interdum tellus porta."
2022-10-26,October 26,Wednesday,1:00 PM,blissful,allegro | at the office,"Vestibulum sagittis leo eu sodales","Ut et elit id lectus hendrerit ełementum quis auctor ipsum."
2022-10-26,October 26,Wednesday,9:00 AM,in awe,allegro | at the office | outdoors | notable event,"Integer elementum","Nunc lobortis enim eu nisi ultrices, sit amet sagittis lacus venenatis."
2022-10-26,October 26,Wednesday,7:50 AM,lifeless,podcast | politics | world event,"Nulla quis lectus pulvinar","Etiam commódo enim ut orci varius viverra."
2022-10-25,October 25,Tuesday,11:36 PM,hungry,allegro | working remotely | colleague interaction,"Mauris vitae nunc vel arcu consequat auctor","Nulla vel risus eget magna lacinia aliquam ac in arcu."
2022-10-25,October 25,Tuesday,11:40 PM,rad,,,Uet nulla nunc lobortis quisque.
2022-10-25,October 25,Tuesday,5:00 PM,vaguely ok,,,
Loading

0 comments on commit 72c6fa9

Please sign in to comment.