forked from ekeih/libtado
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove json schemas test cases
- Loading branch information
1 parent
7e55e71
commit d3ee802
Showing
7 changed files
with
569 additions
and
456 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 |
---|---|---|
@@ -1,46 +1,46 @@ | ||
--- | ||
name: JSON Schemas | ||
on: | ||
- pull_request | ||
# --- | ||
# name: JSON Schemas | ||
# on: | ||
# - pull_request | ||
|
||
jobs: | ||
generate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# jobs: | ||
# generate: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
# - name: Set up Python 3.10 | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry tox | ||
poetry export --with=test --without-hashes --format=requirements.txt > requirements.txt | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install poetry tox | ||
# poetry export --with=test --without-hashes --format=requirements.txt > requirements.txt | ||
|
||
- name: Generate JSON Schemas | ||
run: | ||
tox -e generate_json_schemas | ||
env: | ||
TADO_USERNAME: ${{ secrets.TADO_USERNAME }} | ||
TADO_PASSWORD: ${{ secrets.TADO_PASSWORD }} | ||
TADO_CLIENT_SECRET: ${{ secrets.TADO_CLIENT_SECRET }} | ||
# - name: Generate JSON Schemas | ||
# run: | ||
# tox -e generate_json_schemas | ||
# env: | ||
# TADO_USERNAME: ${{ secrets.TADO_USERNAME }} | ||
# TADO_PASSWORD: ${{ secrets.TADO_PASSWORD }} | ||
# TADO_CLIENT_SECRET: ${{ secrets.TADO_CLIENT_SECRET }} | ||
|
||
- name: Verify Changed files | ||
uses: tj-actions/verify-changed-files@v20 | ||
id: verify-changed-files | ||
with: | ||
files: 'schemas/*.json' | ||
# - name: Verify Changed files | ||
# uses: tj-actions/verify-changed-files@v20 | ||
# id: verify-changed-files | ||
# with: | ||
# files: 'schemas/*.json' | ||
|
||
- name: List all changed tracked and untracked files | ||
env: | ||
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }} | ||
run: | | ||
echo "Changed files: $CHANGED_FILES" | ||
# - name: List all changed tracked and untracked files | ||
# env: | ||
# CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }} | ||
# run: | | ||
# echo "Changed files: $CHANGED_FILES" | ||
|
||
- name: Fail if files have changed | ||
uses: tj-actions/verify-changed-files@v20 | ||
with: | ||
fail-if-changed: true | ||
# - name: Fail if files have changed | ||
# uses: tj-actions/verify-changed-files@v20 | ||
# with: | ||
# fail-if-changed: true |
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
Oops, something went wrong.