forked from moralmunky/Home-Assistant-Mail-And-Packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: better fix for io blocking (moralmunky#921)
* fix: better fix for io blocking * formatting * update tests config
- Loading branch information
Showing
5 changed files
with
69 additions
and
64 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 |
---|---|---|
@@ -1,51 +1,57 @@ | ||
name: Pytest | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 7 1-28/7 * *" | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
tests: | ||
runs-on: "ubuntu-latest" | ||
name: Run tests | ||
strategy: | ||
matrix: | ||
python-version: | ||
# - "3.10" | ||
# - "3.11" | ||
- "3.12" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 📥 Checkout the repository | ||
uses: actions/checkout@v4 | ||
- name: 🛠️ Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
fetch-depth: 2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2.2.2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
- name: 📦 Install requirements | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install language-pack-it | ||
pip install tox tox-gh-actions | ||
- name: Test with tox | ||
- name: 🏃 Test with tox | ||
run: tox | ||
- name: Upload coverage data | ||
uses: "actions/upload-artifact@v2.2.4" | ||
- name: 📤 Upload coverage to Codecov | ||
uses: "actions/upload-artifact@v4" | ||
with: | ||
name: coverage-data | ||
path: "coverage.xml" | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
needs: tests | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v2.3.4 | ||
- name: 📥 Checkout the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Download coverage data | ||
uses: actions/download-artifact@v2.0.10 | ||
- name: 📥 Download coverage data | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: coverage-data | ||
- name: Upload coverage report | ||
uses: codecov/[email protected] | ||
- name: 📤 Upload coverage report | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # required |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,6 +194,15 @@ | |
], | ||
"subject": ["Your Daily Digest"], | ||
}, | ||
"usps_mail_delivered": { | ||
"email": [ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"USPS Informed Delivery", | ||
], | ||
"subject": ["Your Mail Was Delivered"], | ||
}, | ||
# UPS | ||
"ups_delivered": { | ||
"email": ["[email protected]"], | ||
|
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