From 38c5e18b94c1f2f506b89cfa582b4aba80fe48d7 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 5 Aug 2024 14:32:56 -0500 Subject: Add python and a bunch of documentation Signed-off-by: Matt Strapp --- .github/workflows/cmake.yml | 4 +++- .github/workflows/go.yml | 3 ++- .github/workflows/python.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/rust.yml | 8 ++++---- 4 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/python.yml (limited to '.github') diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 37f112f..66eceac 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -13,7 +13,7 @@ on: jobs: cmake: name: CMake Builds - runs-on: $ {{ matrix.os }} + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: @@ -25,3 +25,5 @@ jobs: run: cmake -B build -S . - name: Build run: cmake --build build + - name: Test + run: ctest --test-dir build --output-on-failure diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b415085..81c96b8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,8 +14,9 @@ jobs: build: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v2 - name: Set up Go diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..a353559 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,28 @@ +name: Python + +on: + push: + paths: + - '**.py' + - 'pyproject.toml' + pull_request: + paths: + - '**.py' + - 'pyproject.toml' + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Test + run: python -m unittest discover -s src/locusts-r-us \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 712eb10..833f2c8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,12 +3,12 @@ name: Rust on: push: paths: - - "**.c" - - "**.h" + - "**.rs" + - "Cargo.**" pull_request: paths: - - "**.c" - - "**.h" + - "**.rs" + - "Cargo.**" jobs: rust: -- cgit v1.2.3