Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/schema #95

Merged
merged 27 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[flake8]
# Ignore specific warnings or errors.
ignore = E501

# Optionally, increase the max line length (if you prefer to set a limit instead of ignoring entirely).
max-line-length = 120

# Exclude specific files or directories.
exclude = tests/, docs/, .venv/

31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,40 @@ on:
workflow_dispatch:

jobs:

test:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.3.2

- name: Install Software
run: |
poetry build
poetry install

- name: Run Tests
run: |
poetry run flake8 podaac
poetry run pylint podaac
poetry run pytest

# First job in the workflow installs and verifies the software
deploy_sit:
name: Deploy SIT
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: test

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -38,6 +67,7 @@ jobs:
name: Deploy UAT
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: test

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -61,6 +91,7 @@ jobs:
name: Deploy OPS
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: test

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test_configs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test Configs

on:
push:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.3.2

- name: Install Software
run: |
poetry build
poetry install

- name: Run Tests
run: |
poetry run flake8 podaac
poetry run pylint podaac
poetry run pytest
20 changes: 20 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[MASTER]
# List of directories to ignore (relative to the current directory).
ignore=tests

[MESSAGES CONTROL]
# Disable the following messages by symbolic name or ID.
disable=line-too-long, # C0301: Line too long
broad-exception-caught, # W0718: Catching too general exception Exception
unspecified-encoding, # W1514: Using open without explicitly specifying an encoding
redefined-argument-from-local, # R1704: Redefining argument with a local name
no-value-for-parameter # E1120: No value for argument in function call

[FORMAT]
# Maximum allowed line length (optional override if you want to enforce a slightly longer limit).
max-line-length=120

[REPORTS]
# Disable the output of the report summary.
reports=no

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Released] - 2024-12-04

### Added
- Added Schema validations
- Added a new forge tig configuration generator
- Added in test to validate json structure and schema validate the configurations
- Updated configurations for new forge-py
### Changed
### Deprecated
### Removed
### Fixed
### Security

## [Released] - 2024-11-25

### Added
Expand Down
141 changes: 0 additions & 141 deletions Jenkins/Jenkinsfile

This file was deleted.

Loading
Loading