Browse Source

💚 Force CI build and run

pull/4/head
Ben Coleman 5 years ago
parent
commit
cefaed4c63
  1. 4
      .github/act/readme.md
  2. 2
      src/app/tests/test_api.py

4
.github/act/readme.md

@ -16,11 +16,11 @@ The `.secrets` file must be created first, see the sample file for a reference. @@ -16,11 +16,11 @@ The `.secrets` file must be created first, see the sample file for a reference.
### Run CI
```bash
act push --secret-file .github/.secrets --platform ubuntu-latest=ghcr.io/benc-uk/devcontainers/python:root
act push --secret-file .github/act/.secrets --platform ubuntu-latest=ghcr.io/benc-uk/devcontainers/python:root
```
### Run a deployment
```bash
act workflow_dispatch --eventpath .github/workflow_dispatch.json --secret-file .github/.secrets --platform ubuntu-latest=ghcr.io/benc-uk/devcontainers/python:root
act workflow_dispatch --eventpath .github/act/workflow_dispatch.json --secret-file .github/act/.secrets --platform ubuntu-latest=ghcr.io/benc-uk/devcontainers/python:root
```

2
src/app/tests/test_api.py

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
import json
# Test the process API returns JSON results we expect
def test_api_process(client):
resp = client.get("/api/process")
@ -12,6 +13,7 @@ def test_api_process(client): @@ -12,6 +13,7 @@ def test_api_process(client):
assert len(resp_payload["processes"][0]["name"]) > 0
# Test the monitor API returns JSON results we expect
def test_api_monitor(client):
resp = client.get("/api/monitor")

Loading…
Cancel
Save