aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cmake.yml4
-rw-r--r--.github/workflows/go.yml3
-rw-r--r--.github/workflows/python.yml28
-rw-r--r--.github/workflows/rust.yml8
4 files changed, 37 insertions, 6 deletions
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: