Skip to content

au-ts/systems-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

128 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

systems-ci

This repository contains common files used for CI across the Trustworthy Systems repositories.

For documentation on how to use the CI runner, have a look at the sDDF documentation. For internal documentation, look at the ts_ci folder.

Setup

Locally, you can run the below pip command to install ts_ci.

$ pip install git+https://github.com/au-ts/systems-ci#subdirectory=ts_ci

We provide an action.yml which will set up PYTHONPATH such that one can import the ts_ci python package.

    - name: Setup systems-ci
      uses: au-ts/systems-ci@main

Alternatively, specify the path input and run source setup.sh within a POSIX shell. This is useful for Nix usecases, where the environment is pure.

      - name: Setup systems-ci
        uses: au-ts/systems-ci@main
        with:
          path: systems-ci
      - name: Build examples
        run: nix develop --ignore-environment -c bash -c 'source systems-ci/setup.sh && echo hello world'
        shell: bash

Style

The CI runs a style check on any changed files and new files added in each GitHub pull request.

Python code

For helper scripts and the metaprograms (meta.py) which are written in Python, we use black.

Running black . --required-version 25 in the root of the repository or on a specific directory/file will run the Python style check.

Note that currently we target the 2025 styling of black.

About

Contains the common CI configuration data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages