Skip to content
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
40 changes: 9 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
uses: EED-Solutions/eed_gha_workflows/.github/actions/ruff@main
with:
checkout_code: false
generate-matrix:
generate-parameters:
runs-on: ubuntu-latest
name: generate matrix for pytests
name: generate parameters
outputs:
matrix: ${{ steps.set_matrix.outputs.matrix }}
steps:
Expand Down Expand Up @@ -55,9 +55,9 @@ jobs:
pytests:
name: Run Pytests
runs-on: ubuntu-latest
needs: generate-matrix
needs: generate-parameters
strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
matrix: ${{ fromJson(needs.generate-parameters.outputs.matrix) }}
steps:
- name: "checkout repository"
uses: EED-Solutions/eed_gha_workflows/.github/actions/checkout_code@main
Expand All @@ -77,40 +77,18 @@ jobs:
pytests_cov:
name: Run Pytests with Coverage
runs-on: ubuntu-latest
needs: generate-parameters
steps:
- name: install tree tool
run: |
tree -d -a -L 4
- name: echo environment variables
run: |
echo "GITHUB_WORKFLOW: ${{ github.workflow }}"
echo "Github workspace: ${{ github.workspace }}"
echo "GITHUB_EVENT_NAME: ${{ github.event_name }}"
echo "GITHUB_REPOSITORY: ${{ github.repository }}"
echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
echo "pwd: $(pwd)"
echo "home: $HOME"
- name: "checkout repository"
uses: EED-Solutions/eed_gha_workflows/.github/actions/checkout_code@add-pytest-cov
with:
echo-files: true
- name: echo environment variables
run: |
echo "GITHUB_WORKFLOW: ${{ github.workflow }}"
echo "Github workspace: ${{ github.workspace }}"
echo "GITHUB_EVENT_NAME: ${{ github.event_name }}"
echo "GITHUB_REPOSITORY: ${{ github.repository }}"
echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
echo "pwd: $(pwd)"
echo "home: $HOME"
tree -a -L 4
uses: EED-Solutions/eed_gha_workflows/.github/actions/checkout_code@main
- name: "install uv and python"
uses: EED-Solutions/eed_gha_workflows/.github/actions/install_uv@@add-pytest-cov
uses: EED-Solutions/eed_gha_workflows/.github/actions/install_uv@main
- name: set up python environment
uses: EED-Solutions/eed_gha_workflows/.github/actions/set_up_py_env@main
- name: pytests with coverage
uses: EED-Solutions/eed_gha_workflows/.github/actions/pytests_cov@add-pytest-cov
uses: EED-Solutions/eed_gha_workflows/.github/actions/pytests_cov@main
with:
checkout_code: false
install_uv: false
install_dependencies: false
fail-under: 80
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
11. Update repository settings as needed (e.g., import branch/tag rulesets, general settings). For more information, see [this guide](https://eed-solutions.atlassian.net/wiki/x/BIA8Mw) (private access). Rulesets are documented under ``.github\rulesets`` and can be imported.
12. Merge the pull request and create the initial release (e.g., `0.1.0`).

## Github actions

Workflows are centraly hosted in EED_Solutions/eed_gha_workflows.
Please check for more details here.

## Other

Test EED85-machine
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
name = "eed-package-template"
version = "0.1.0"
version = "0.2.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "EED85", email = "eric.brahmann@eed-solutions.de" }
]
requires-python = ">=3.11"
requires-python = ">=3.12"
dependencies = [
"eed-basic-utils",
]
Expand Down
Loading
Loading