-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from sparkmicro/1.0.0
1.0.0
- Loading branch information
Showing
21 changed files
with
817 additions
and
2,456 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,13 +1,10 @@ | ||
[run] | ||
omit = | ||
# Do not run coverage on virtual environment files | ||
env-kintree/* | ||
.venv/* | ||
# Skip UI coverage | ||
# Do not run coverage on environment files | ||
*env* | ||
# Skip GUI coverage | ||
kintree/kintree_gui.py | ||
kintree/common/progress.py | ||
kintree/gui/* | ||
# Skip wrapt_timeout_decorator | ||
kintree/wrapt_timeout_decorator/* | ||
kintree/common/progress.py | ||
# Skip test script | ||
run_tests.py |
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.10'] | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -49,16 +49,15 @@ jobs: | |
INVENTREE_ENV: 0 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TOKEN_DIGIKEY: ${{ secrets.TOKEN_DIGIKEY }} | ||
DIGIKEY_CLIENT_ID: ${{ secrets.DIGIKEY_CLIENT_ID }} | ||
DIGIKEY_CLIENT_SECRET: ${{ secrets.DIGIKEY_CLIENT_SECRET }} | ||
|
||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.10'] | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
|
||
steps: | ||
# - name: Test SnapEDA API | ||
# run: | | ||
# curl snapeda.eeinte.ch/?SN74LV4T125PWR | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -74,7 +73,7 @@ jobs: | |
git clone https://github.com/inventree/InvenTree/ | ||
mkdir InvenTree/static | ||
cp tests/files/inventree_default_db.sqlite3 InvenTree/ | ||
cd InvenTree/ && invoke install && invoke migrate && cd - | ||
cd InvenTree/ && git switch stable && invoke install && invoke migrate && cd - | ||
- name: Ki-nTree setup | ||
run: | | ||
invoke install | ||
|
@@ -90,37 +89,40 @@ jobs: | |
cat gui.log | ||
export len_log=$(cat gui.log | wc -l) | ||
[[ ${len_log} -eq 0 ]] && true || false | ||
- name: Digi-Key API setup | ||
- name: Setup Digi-Key token | ||
if: github.event.pull_request.head.repo.full_name == 'sparkmicro/Ki-nTree' | ||
run: | | ||
git clone https://[email protected]/eeintech/digikey-token.git | ||
cp digikey-token/token_storage.json ~/.config/kintree/cache/ | ||
cat ~/.config/kintree/cache/token_storage.json | ||
cd digikey-token/ | ||
python digikey_token_refresh.py | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Ki-nTree Github Actions" | ||
git add -u | ||
git diff-index --quiet HEAD || git commit -m "Update token" | ||
git push origin master | ||
cp token_storage.json ~/.config/kintree/cache/ | ||
dk_token=$(cat ~/.config/kintree/cache/token_storage.json) | ||
echo -e "Digi-Key Token: $dk_token\n" | ||
cd .. | ||
- name: Run tests | ||
if: github.event.pull_request.head.repo.full_name == 'sparkmicro/Ki-nTree' | ||
run: | | ||
invoke test | ||
invoke test -e 1 | ||
env: | ||
DIGIKEY_CLIENT_ID: ${{ secrets.DIGIKEY_CLIENT_ID }} | ||
DIGIKEY_CLIENT_SECRET: ${{ secrets.DIGIKEY_CLIENT_SECRET }} | ||
MOUSER_PART_API_KEY: ${{ secrets.MOUSER_PART_API_KEY }} | ||
ELEMENT14_PART_API_KEY: ${{ secrets.ELEMENT14_PART_API_KEY }} | ||
- name: Run tests (skip APIs) | ||
if: github.event.pull_request.head.repo.full_name != 'sparkmicro/Ki-nTree' | ||
run: | | ||
invoke test -e 0 | ||
- name: Coveralls | ||
if: github.event.pull_request.head.repo.full_name == 'sparkmicro/Ki-nTree' | ||
run: | | ||
coveralls --version | ||
coveralls --service=github | ||
- name: Run build | ||
run: | | ||
invoke build | ||
- name: Push Digi-Key Token | ||
run: | | ||
cd digikey-token/ | ||
git pull | ||
cp ~/.config/kintree/cache/token_storage.json . | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Ki-nTree Github Actions" | ||
git add -u | ||
git diff-index --quiet HEAD || git commit -m "Updated token" | ||
git push origin master | ||
cd .. | ||
test-publish: | ||
name: Publish to Test PyPI, then PyPI | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
dist/ | ||
build/ | ||
*.spec | ||
# Cache-backup files | ||
# Cache and backup files | ||
*__pycache__* | ||
*.bck | ||
# Test files | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Empty file.
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
Oops, something went wrong.