-
Notifications
You must be signed in to change notification settings - Fork 9
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 #85 from mfesiem/develop
Develop
- Loading branch information
Showing
12 changed files
with
130,015 additions
and
38 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 |
---|---|---|
|
@@ -17,31 +17,38 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# Fetches entire history, so we can analyze commits since last tag | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install graphviz | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install . | ||
python -m pip show msiempy | ||
- name: Generate documentation | ||
- name: Generate test documentation | ||
run: | | ||
python3 -m pdoc msiempy --output-dir docs_tmp --html --force --template-dir ./.pdoc_templates | ||
git clone https://github.com/mfesiem/mfesiem.github.io | ||
rm -rf ./mfesiem.github.io/docs/test/msiempy | ||
cp -r ./docs_tmp/msiempy mfesiem.github.io/docs/test/ | ||
# pyreverse -s 1 -f PUB_ONLY -o png -m y msiempy | ||
# mv ./classes.png ./mfesiem.github.io/docs/test/msiempy | ||
# mv ./packages.png ./mfesiem.github.io/docs/test/msiempy | ||
# Ignore any errors on diagram generation | ||
set +e | ||
pyreverse -s 1 -f PUB_ONLY -o png -m y msiempy | ||
mv ./classes.png ./mfesiem.github.io/docs/test/msiempy | ||
mv ./packages.png ./mfesiem.github.io/docs/test/msiempy | ||
set -e | ||
- name: Publish documentation | ||
- name: Publish documentation to mfesiem.github.io/docs/test/msiempy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.MFESIEM_GITHUB_IO_PRIVATE_KEY }} | ||
|
@@ -51,5 +58,6 @@ jobs: | |
user_name: 'Github Actions' | ||
user_email: "[email protected]" | ||
commit_message: "Generate documentation - develop" | ||
enable_jekyll: true | ||
|
||
|
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 |
---|---|---|
|
@@ -27,6 +27,7 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install graphviz | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install -r requirements.txt | ||
python -m pip install . | ||
|
@@ -55,11 +56,11 @@ jobs: | |
rm -rf ./mfesiem.github.io/docs/msiempy | ||
cp -r ./docs_tmp/msiempy mfesiem.github.io/docs/ | ||
# pyreverse -s 1 -f PUB_ONLY -o png -m y msiempy | ||
# mv ./classes.png ./mfesiem.github.io/docs/msiempy | ||
# mv ./packages.png ./mfesiem.github.io/docs/msiempy | ||
pyreverse -s 1 -f PUB_ONLY -o png -m y msiempy | ||
mv ./classes.png ./mfesiem.github.io/docs/msiempy | ||
mv ./packages.png ./mfesiem.github.io/docs/msiempy | ||
- name: Publish documentation | ||
- name: Publish documentation to mfesiem.github.io/docs/msiempy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.MFESIEM_GITHUB_IO_PRIVATE_KEY }} | ||
|
@@ -69,6 +70,7 @@ jobs: | |
user_name: 'Github Actions' | ||
user_email: "[email protected]" | ||
commit_message: "Generate documentation - master" | ||
enable_jekyll: true | ||
|
||
- name: Build msiempy | ||
run: python3 setup.py --quiet build check sdist bdist_wheel | ||
|
@@ -85,7 +87,8 @@ jobs: | |
run: | | ||
version="$(python setup.py --version)" | ||
last_tag="$(git --no-pager tag -l | tail -1)" | ||
git --no-pager log ${last_tag}.. --pretty=oneline > ./tmp_tag.txt | ||
echo "msiempy ${version}" > ./tmp_tag.txt | ||
git --no-pager log ${last_tag}.. --pretty=oneline >> ./tmp_tag.txt | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github actions" | ||
git tag -a ${version} -F ./tmp_tag.txt | ||
|
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
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
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.