Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: frequenz-floss/frequenz-sdk-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7f405bb31cc4544037e464e6cd800c28bbe80f3d
Choose a base ref
..
head repository: frequenz-floss/frequenz-sdk-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 509c528f8ed30be165938b4b703d6c7eddd83939
Choose a head ref
54 changes: 54 additions & 0 deletions .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test PR

on: pull_request

env:
# Please make sure this version is included in the `matrix`, as the
# `matrix` section can't use `env`, so it must be entered manually
DEFAULT_PYTHON_VERSION: '3.11'
# It would be nice to be able to also define a DEFAULT_UBUNTU_VERSION
# but sadly `env` can't be used either in `runs-on`.

jobs:
nox:
name: Test with nox
runs-on: ubuntu-24.04

steps:
- name: Run nox
uses: frequenz-floss/gh-action-nox@v1.0.0
with:
python-version: "3.11"
nox-session: ci_checks_max

test-docs:
name: Test documentation website generation
runs-on: ubuntu-24.04
steps:
- name: Setup Git
uses: frequenz-floss/gh-action-setup-git@v1.0.0

- name: Fetch sources
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Python
uses: frequenz-floss/gh-action-setup-python-with-deps@v1.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
dependencies: .[dev-mkdocs]

- name: Generate the documentation
env:
MIKE_VERSION: gh-${{ github.job }}
run: |
mike deploy $MIKE_VERSION
mike set-default $MIKE_VERSION
- name: Upload site
uses: actions/upload-artifact@v4
with:
name: docs-site
path: site/
if-no-files-found: error
Loading