Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/85 deploy libdoc #88

Merged
merged 18 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

name: Python package

on: [ pull_request ]
on: [ push, pull_request ]

jobs:
build:
Expand All @@ -14,22 +14,15 @@ jobs:
python-version: ['3.8', '3.9', '3.10','3.11','3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 xmlrunner
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Execute doctests
run: |
python CamundaLibrary/CamundaResources.py -v
33 changes: 12 additions & 21 deletions .github/workflows/robot-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,25 @@ jobs:
env:
camunda.bpm.run.auth.enabled: ${{ matrix.auth_enabled }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Test with robot
run: |
pip install .
sleep 10
robot -d logs -b debug.log -x xunit.xml -L DEBUG -V tests/robot/config_cicd.py -v CAMUNDA_HOST:http://camunda:8080 tests/robot/**/*.robot
- name: Archive production artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: robot logs
name: robot logs-${{matrix.camunda_version}}-${{matrix.auth_enabled}}
path: |
logs/

publish-test-results:
name: "Publish Unit Tests Results"
needs: integrationtest
runs-on: ubuntu-latest
# the build-and-test job might be skipped, we don't need to run this job then
if: success() || failure()

steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: robot logs
logs
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: robot logs-${{matrix.camunda_version}}-${{matrix.auth_enabled}}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: xunit.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: xunit.xml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ logs/
log/
temp/
tmp/
build/
.idea/
public/
lsp/
__pycache__/
.vscode/

*.egg-info
*.log
*.zip
.robocop
Expand Down
Loading
Loading