aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-08-06 22:06:49 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-08-06 22:06:49 -0500
commitd684f38fa9001c9e175aa649c0a0cc77c72f1dea (patch)
tree1f81856a6adec96c2fb4f795487ea314704b4589
parentpython: Add Build as a dependency (diff)
downloadlocusts-d684f38fa9001c9e175aa649c0a0cc77c72f1dea.tar
locusts-d684f38fa9001c9e175aa649c0a0cc77c72f1dea.tar.gz
locusts-d684f38fa9001c9e175aa649c0a0cc77c72f1dea.tar.bz2
locusts-d684f38fa9001c9e175aa649c0a0cc77c72f1dea.tar.lz
locusts-d684f38fa9001c9e175aa649c0a0cc77c72f1dea.tar.xz
locusts-d684f38fa9001c9e175aa649c0a0cc77c72f1dea.tar.zst
locusts-d684f38fa9001c9e175aa649c0a0cc77c72f1dea.zip
chore: Update workflow names and descriptions for consistency
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r--.github/workflows/docker.yml1
-rw-r--r--.github/workflows/dotnet.yml9
-rw-r--r--.github/workflows/go.yml1
-rw-r--r--.github/workflows/python.yml26
-rw-r--r--.github/workflows/rust.yml2
5 files changed, 34 insertions, 5 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index f5eea9c..8a1178e 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -18,6 +18,7 @@ env:
jobs:
build-and-push:
+ name: Build and Push (Docker)
runs-on: ubuntu-latest
permissions:
contents: read
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 7ae8ac1..b48095a 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -15,7 +15,8 @@ on:
- ".github/workflows/dotnet.yml"
jobs:
- test:
+ build-and-test:
+ name: Build and Test (.NET)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@@ -33,7 +34,8 @@ jobs:
run: dotnet test --no-restore
publish-preview:
- needs: test
+ name: Publish Preview to GitHub Packages
+ needs: build-and-test
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
permissions:
@@ -58,7 +60,8 @@ jobs:
run: dotnet nuget push src/bin/Release/*.symbols.nupkg
publish-release:
- needs: test
+ name: Publish Release to NuGet
+ needs: build-and-test
if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 68feb69..57e0ebe 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -14,6 +14,7 @@ on:
jobs:
build:
+ name: Build and Test (Go)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index ddb929b..f75c9d6 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -15,7 +15,8 @@ on:
- ".github/workflows/python.yml"
jobs:
- build:
+ build-and-test:
+ name: Build and Test (Python)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@@ -34,3 +35,26 @@ jobs:
run: python -m build
- name: Test
run: python -m unittest discover -s src/locusts-r-us
+
+ publish:
+ name: Publish to PyPI
+ needs: build-and-test
+ if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
+ runs-on: ubuntu-latest
+ permissions:
+ id-token: write
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: "3.x"
+ - name: Install dependencies
+ run: python -m pip install -r requirements.txt
+ - name: Build the package
+ run: python -m build --sdist --wheel
+ - name: Publish package distributions to PyPI
+ uses: pypa/gh-action-pypi-publish@release/v1
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 4705baf..2db58dc 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -14,7 +14,7 @@ on:
jobs:
rust:
- name: Rust Builds
+ name: Build and Test (Rust)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false