From 46526882c23598d3980865eee587cb0fd25d31a9 Mon Sep 17 00:00:00 2001 From: Benjamin Hamon Date: Tue, 19 Aug 2025 18:34:31 +0200 Subject: [PATCH] Configure github workflows --- .github/workflows/develop.yaml | 77 ++++++++++++++++++++++++++++++ .github/workflows/integration.yaml | 77 ++++++++++++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 .github/workflows/develop.yaml create mode 100644 .github/workflows/integration.yaml diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml new file mode 100644 index 0000000..2b71aa9 --- /dev/null +++ b/.github/workflows/develop.yaml @@ -0,0 +1,77 @@ +--- + +# cspell:words venv + +name: Development pipeline + +on: + pull_request: + branches: + - develop + +env: + PYTHON_VERSION: "3.9" + + + +jobs: + + check_for_linux: + name: "Run checks and tests on Linux" + runs-on: ubuntu-latest + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Set up automation + run: python Automation/Setup/setup.py --verbosity debug + + - name: Check automation + run: python Automation/Setup/check.py --verbosity debug + + - name: Set up sources + run: .venv-automation/bin/automation --verbosity debug develop + + - name: Run linter + run: .venv-automation/bin/automation --verbosity debug lint + + - name: Run tests + run: .venv-automation/bin/automation --verbosity debug test + + + + check_for_windows: + name: "Run checks and tests on Windows" + runs-on: windows-latest + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Set up automation + run: python Automation/Setup/setup.py --verbosity debug + + - name: Check automation + run: python Automation/Setup/check.py --verbosity debug + + - name: Set up sources + run: .venv-automation/Scripts/automation.exe --verbosity debug develop + + - name: Run linter + run: .venv-automation/Scripts/automation.exe --verbosity debug lint + + - name: Run tests + run: .venv-automation/Scripts/automation.exe --verbosity debug test diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml new file mode 100644 index 0000000..eee8766 --- /dev/null +++ b/.github/workflows/integration.yaml @@ -0,0 +1,77 @@ +--- + +# cspell:words venv + +name: Integration pipeline + +on: + push: + branches: + - develop + +env: + PYTHON_VERSION: "3.9" + + + +jobs: + + check_for_linux: + name: "Run checks and tests on Linux" + runs-on: ubuntu-latest + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Set up automation + run: python Automation/Setup/setup.py --verbosity debug + + - name: Check automation + run: python Automation/Setup/check.py --verbosity debug + + - name: Set up sources + run: .venv-automation/bin/automation --verbosity debug develop + + - name: Run linter + run: .venv-automation/bin/automation --verbosity debug lint + + - name: Run tests + run: .venv-automation/bin/automation --verbosity debug test + + + + check_for_windows: + name: "Run checks and tests on Windows" + runs-on: windows-latest + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Set up automation + run: python Automation/Setup/setup.py --verbosity debug + + - name: Check automation + run: python Automation/Setup/check.py --verbosity debug + + - name: Set up sources + run: .venv-automation/Scripts/automation.exe --verbosity debug develop + + - name: Run linter + run: .venv-automation/Scripts/automation.exe --verbosity debug lint + + - name: Run tests + run: .venv-automation/Scripts/automation.exe --verbosity debug test