Skip to content

Commit

Permalink
test: remove json schemas test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
germainlefebvre4 committed Jan 17, 2025
1 parent 7e55e71 commit b0760a5
Show file tree
Hide file tree
Showing 7 changed files with 565 additions and 452 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/check_json_schemas.yml
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
18 changes: 13 additions & 5 deletions .github/workflows/template_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
# python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.11"]
poetry-version: ["main"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup poetry version ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v4
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry tox
poetry self add poetry-plugin-export
pip install tox
poetry export --with=test --without-hashes --format=requirements.txt > requirements.txt
- name: Test with pytest
Expand All @@ -27,3 +34,4 @@ jobs:
TADO_USERNAME: ${{ secrets.TADO_USERNAME }}
TADO_PASSWORD: ${{ secrets.TADO_PASSWORD }}
TADO_CLIENT_SECRET: ${{ secrets.TADO_CLIENT_SECRET }}
TADO_BRIDGE_AUTHKEY: ${{ secrets.TADO_BRIDGE_AUTHKEY }}
Loading

0 comments on commit b0760a5

Please sign in to comment.