-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from MITLibraries/IN-1059-maintenance-08-2024
IN 1059 - Maintenance 2024-08
- Loading branch information
Showing
24 changed files
with
1,849 additions
and
1,363 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,28 +1,29 @@ | ||
#### Includes new or updated dependencies? | ||
### Purpose and background context | ||
Describe the overall purpose of the PR changes and any useful background context. | ||
|
||
YES | NO | ||
### How can a reviewer manually see the effects of these changes? | ||
Explain how to see the proposed changes in the application if possible. | ||
|
||
#### Changes expectations for external applications? | ||
Delete this section if it isn't applicable to the PR. | ||
|
||
### Includes new or updated dependencies? | ||
YES | NO | ||
|
||
#### Developer | ||
### Changes expectations for external applications? | ||
YES | NO | ||
|
||
### What are the relevant tickets? | ||
- Include links to Jira Software and/or Jira Service Management tickets here. | ||
|
||
### Developer | ||
- [ ] All new ENV is documented in README | ||
- [ ] All new ENV has been added to staging and production environments | ||
- [ ] All related Jira tickets are linked in commit message(s) | ||
- [ ] Stakeholder approval has been confirmed (or is not needed) | ||
|
||
#### How can a reviewer manually see the effects of these changes? | ||
|
||
Explain how to see the proposed changes in the application. | ||
|
||
Delete this section if it isn't applicable to the PR. | ||
|
||
#### Code Reviewer | ||
|
||
- [ ] The commit message is clear and follows our guidelines | ||
(not just this pull request message) | ||
### Code Reviewer(s) | ||
- [ ] The commit message is clear and follows our guidelines (not just this PR message) | ||
- [ ] There are appropriate tests covering any new functionality | ||
- [ ] The documentation has been updated or is unnecessary | ||
- [ ] The changes have been verified | ||
- [ ] The provided documentation is sufficient for understanding any new functionality introduced | ||
- [ ] Any manual tests have been performed **or** provided examples verified | ||
- [ ] New dependencies are appropriate or there were no changes |
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,41 +1,7 @@ | ||
name: Tests | ||
name: CI | ||
on: push | ||
jobs: | ||
test: | ||
name: Run tests | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: Install | ||
run: | | ||
python -m pip install --upgrade pip pipenv | ||
pipenv install --dev | ||
- name: Tests | ||
run: make coveralls | ||
linting: | ||
name: Run linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: Install | ||
run: | | ||
python -m pip install --upgrade pip pipenv | ||
pipenv install --dev | ||
- name: bandit | ||
run: make bandit | ||
- name: black | ||
run: make black | ||
- name: flake8 | ||
run: make flake8 | ||
- name: isort | ||
run: make isort | ||
uses: mitlibraries/.github/.github/workflows/python-shared-test.yml@main | ||
lint: | ||
uses: mitlibraries/.github/.github/workflows/python-shared-lint.yml@main |
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
default_language_version: | ||
python: python3.12 | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: black-apply | ||
name: black-apply | ||
entry: pipenv run black | ||
language: system | ||
pass_filenames: true | ||
types: ["python"] | ||
- id: mypy | ||
name: mypy | ||
entry: pipenv run mypy | ||
language: system | ||
pass_filenames: true | ||
types: ["python"] | ||
exclude: "tests/" | ||
- id: ruff-apply | ||
name: ruff-apply | ||
entry: pipenv run ruff check --fix | ||
language: system | ||
pass_filenames: true | ||
types: ["python"] | ||
- id: safety | ||
name: safety | ||
entry: pipenv check | ||
language: system | ||
pass_filenames: false |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
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,20 +1,12 @@ | ||
FROM python:3.9-slim as build | ||
FROM python:3.12-slim as build | ||
WORKDIR /app | ||
COPY . . | ||
RUN cd /app && python setup.py bdist_wheel | ||
|
||
|
||
FROM python:3.9-slim | ||
ENV PIP_NO_CACHE_DIR yes | ||
WORKDIR /app | ||
RUN pip install --no-cache-dir --upgrade pip pipenv | ||
|
||
RUN apt-get update && apt-get upgrade -y && apt-get install -y git | ||
|
||
COPY Pipfile* / | ||
RUN pipenv install --system --clear --deploy | ||
|
||
COPY --from=build /app/dist/submitter-*-py3-none-any.whl . | ||
RUN pip install submitter-*-py3-none-any.whl | ||
RUN pipenv install | ||
|
||
ENTRYPOINT ["submitter"] | ||
ENTRYPOINT ["pipenv", "run", "submitter"] |
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
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.