Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report to help us improve
title: "[Bug]"
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature]"
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Summary
Describe clearly what this PR changes and why.

## Related Issues
Fixes #<issue-id> or Closes #<discussion-link>

## Tests & Build
- [ ] `ruff format` passes
- [ ] `pytest --ignore=tests/yml_tests/test_authorized` passes (or N/A)
Comment thread
SpicyGarlicAlbacoreRoll marked this conversation as resolved.
Resolved

## Notes
Anything unusual reviewers should know.
18 changes: 18 additions & 0 deletions .github/workflows/changelog.yml
Comment thread
SpicyGarlicAlbacoreRoll marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Changelog updated?

on:
pull_request:
types:
- opened
- labeled
- unlabeled
- synchronize
branches:
- prod

jobs:
call-changelog-check-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.22.0
permissions:
contents: read
23 changes: 0 additions & 23 deletions .github/workflows/deploy-prod.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/deploy-test.yml

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Lint

on:
pull_request:
types: [opened, edited, reopened]
push:
pull_request:
types: [opened, edited, reopened]
push:

jobs:
lint:
runs-on: ubuntu-latest
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v4.1.0
- run: ruff check --fix
- run: ruff format
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v4.1.0
- run: ruff check --fix
- run: ruff format
17 changes: 17 additions & 0 deletions .github/workflows/pr-labeled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Is PR labeled?

on:
pull_request:
types:
- opened
- labeled
- unlabeled
- synchronize
branches:
- prod

jobs:
call-labeled-pr-check-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.22.0
permissions:
contents: read
36 changes: 18 additions & 18 deletions .github/workflows/run-pytest-against-uat.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: tests against uat

on:
pull_request:
branches: prod
paths:
- "**.py"
pull_request:
branches: prod
paths:
- "**.py"

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r src/requirements.txt
python3 -m pip install -r tests/requirements.txt
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r src/requirements.txt
python3 -m pip install -r tests/requirements.txt

- name: Run Tests
run: python3 -m pytest --use-uat tests/yml_tests/test_authorized.yml
- name: Run Tests
run: python3 -m pytest --use-uat tests/yml_tests/test_authorized.yml
54 changes: 27 additions & 27 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: tests

on:
pull_request:
branches: test
paths:
- "**.py"
pull_request:
branches: test
paths:
- "**.py"
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r src/requirements.txt
python3 -m pip install -r tests/requirements.txt
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r src/requirements.txt
python3 -m pip install -r tests/requirements.txt

- name: Run Tests
run: python3 -m pytest --df=test_authorized
- name: Run Tests
run: python3 -m pytest --df=test_authorized

# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: false
# files: ./coverage.xml
# flags: unittests
# name: asf_admin pytest
# verbose: true
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: false
# files: ./coverage.xml
# flags: unittests
# name: asf_admin pytest
# verbose: true
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## [1.0.0]

### Added

- Initial Release
28 changes: 28 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
BSD 3-Clause License

Copyright (c) 2024, Alaska Satellite Facility

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading
Loading