-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Szefler
committed
Jul 5, 2024
1 parent
430410b
commit a0f0c3d
Showing
4 changed files
with
138 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test Prometrix with pytest | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
run_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
# setup a KIND cluster with Prometheus | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
- name: Check Kind deployment | ||
run: | | ||
kubectl config get-contexts | ||
kubectl get nodes | ||
# TODO install Prometheus | ||
|
||
# install Prometrix so that we can run tests on it | ||
- name: Install Prometrix | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.0 | ||
poetry config virtualenvs.create false | ||
poetry install --with test | ||
# run the actual tests | ||
- name: Test Prometrix | ||
env: | ||
TEST_CONFIG: ${{ secrets.TEST_CONFIG }} | ||
run: | | ||
python tests/main.py --from-env |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters