-
Notifications
You must be signed in to change notification settings - Fork 47
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 #210 from openpreserve/rel/1.6
REL: FIDO v1.6.0
- Loading branch information
Showing
25 changed files
with
65,943 additions
and
1,084 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: PR QA | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
name: Checkout and Build | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U flake8 pep257 pytest-cov codecov codacy-coverage pluggy | ||
pip install -e . | ||
- name: Lint code with flake8 | ||
run: flake8 . --count --show-source --max-line-length=127 --statistics | ||
- name: Lint code with pep257 | ||
if: matrix.python-version == 2.7 | ||
run: pep257 --match="(?!fido).*\.py" ./fido | ||
- name: Test using pytest | ||
run: pytest --cov=fido | ||
- name: Generate LCOV coverage report | ||
if: matrix.python-version == 3.10 | ||
run: coverage xml -o cobertura.xml | ||
- name: Upload coverage report | ||
if: matrix.python-version == 3.10 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage-report | ||
path: cobertura.xml | ||
coverage: | ||
name: Quality Assurance | ||
runs-on: ubuntu-20.04 | ||
needs: [ build ] | ||
|
||
steps: | ||
- name: Download coverage report | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage-report | ||
path: cobertura.xml | ||
- name: Codecov coverage reporting | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: cobertura.xml | ||
fail_ci_if_error: false # optional (default = false) | ||
verbose: true # optional (default = false) | ||
- name: Codacy analysis reporting | ||
uses: codacy/codacy-analysis-cli-action@4.0.0 |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
FROM python:3.6-alpine as builder | ||
|
||
LABEL maintainer="carl.wilson@openpreservation.org" \ | ||
org.openpreservation.vendor="Open Preservation Foundation" \ | ||
version="0.1" | ||
|
||
RUN apk update && apk --no-cache --update-cache add gcc build-base libxml2-dev libxslt-dev git | ||
|
||
WORKDIR /src | ||
|
||
COPY setup.py setup.py | ||
COPY requirements.txt requirements.txt | ||
COPY README.md README.md | ||
COPY fido/* fido/ | ||
|
||
RUN mkdir /install && pip install -U pip && pip install -r requirements.txt --prefix=/install && pip install --prefix=/install . | ||
|
||
FROM python:3.6-alpine | ||
|
||
RUN apk update && apk add --no-cache --update-cache libc6-compat libstdc++ bash libxslt | ||
RUN install -d -o root -g root -m 755 /opt && adduser --uid 1000 -h /opt/fido_sigs -S eark && pip install -U pip python-dateutil | ||
|
||
WORKDIR /opt/fido_sigs | ||
|
||
COPY --from=builder /install /usr/local | ||
COPY . /opt/fido_sigs/ | ||
RUN chown -R eark:users /opt/fido_sigs | ||
|
||
USER eark | ||
|
||
EXPOSE 5000 | ||
ENV FLASK_APP='fido.signatures' | ||
ENTRYPOINT flask run --host "0.0.0.0" --port "5000" |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.