From 268428264e744b2f1bd9ec03b83e6bbb07b8e620 Mon Sep 17 00:00:00 2001 From: Benjamin Hamon Date: Wed, 1 Oct 2025 16:28:18 +0200 Subject: [PATCH] Configure github workflows for development --- .github/workflows/develop.yaml | 76 ++++++++++++++++++++++++++++++ .github/workflows/integration.yaml | 76 ++++++++++++++++++++++++++++++ 2 files changed, 152 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..4780700 --- /dev/null +++ b/.github/workflows/develop.yaml @@ -0,0 +1,76 @@ +--- + +# cspell:words venv + +name: Development pipeline + +on: + pull_request: + branches: + - develop + +jobs: + + check_for_linux: + name: "Run checks and tests on Linux using Python ${{ matrix.python-version }}" + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.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 using Python ${{ matrix.python-version }}" + runs-on: windows-latest + strategy: + matrix: + python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.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..6247a29 --- /dev/null +++ b/.github/workflows/integration.yaml @@ -0,0 +1,76 @@ +--- + +# cspell:words venv + +name: Integration pipeline + +on: + push: + branches: + - develop + +jobs: + + check_for_linux: + name: "Run checks and tests on Linux using Python ${{ matrix.python-version }}" + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.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 using Python ${{ matrix.python-version }}" + runs-on: windows-latest + strategy: + matrix: + python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] + + steps: + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.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