![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Python CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths: [ deploy/grafana-dashboard/** ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths: [ deploy/grafana-dashboard/** ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python 3
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
cache: pipenv
|
|
- name: Install pipenv
|
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
|
- run: pipenv install
|
|
working-directory: deploy/grafana-dashboard
|
|
- name: Use Sample Environments
|
|
run: cp environments.json.sample environments.json
|
|
working-directory: deploy/grafana-dashboard
|
|
- name: Create Grafana Dashboard JSON
|
|
run: pipenv run python main.py
|
|
working-directory: deploy/grafana-dashboard
|
|
- name: Upload Grafana Dashboard JSON
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: grafana-dashboard.json
|
|
path: deploy/grafana-dashboard/main.json
|