-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14 * 1.9.14
- Loading branch information
Showing
14 changed files
with
288 additions
and
228 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
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,13 +1,14 @@ | ||
name: OCSP-Checker | ||
name: OCSPChecker | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.os }}-python${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
os: | ||
[ | ||
ubuntu-20.04, | ||
|
@@ -18,61 +19,61 @@ jobs: | |
macos-11, | ||
] | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3.3.0 | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # tag=v4.2.1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # tag=v4.7.1 | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # tag=v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install tools | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
- name: Install pytest | ||
run: | | ||
python -m pip install pytest pytest-cov | ||
python -m pip install pytest | ||
- name: Install requirements | ||
run: | | ||
python -m pip install -r requirements.txt | ||
- name: Run pytest | ||
run: | | ||
pytest -v --junitxml=test-output.xml --cov=ocspchecker --cov-report xml | ||
pytest tests/test_ocspchecker.py -v --junitxml=test-output-${{ matrix.os }}-python${{ matrix.python-version }}.xml | ||
- name: Upload test results | ||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3.1.2 | ||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # tag=v4.4.3 | ||
with: | ||
name: pytest-results for ${{ matrix.python-version }} | ||
path: "**/test-output.xml" | ||
- name: Upload coverage results | ||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3.1.2 | ||
with: | ||
name: pytest-results for ${{ matrix.python-version }} | ||
path: "**/coverage.xml" | ||
name: pytest-results for ${{ matrix.os }}-python${{ matrix.python-version }} | ||
path: "**/test-output-${{ matrix.os }}-python${{ matrix.python-version }}.xml" | ||
# - name: Upload coverage results | ||
# uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # tag=v4.4.3 | ||
# with: | ||
# name: pytest-results for ${{ matrix.python-version }} | ||
# path: "**/coverage.xml" | ||
if: ${{ always() }} | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3.3.0 | ||
- name: Set up Python 3.x | ||
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # tag=v4.7.1 | ||
with: | ||
python-version: "3.9" | ||
architecture: "x64" | ||
- name: Install tools | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install build twine | ||
- name: Build pypy package | ||
run: | | ||
python -m build | ||
- name: Check package description | ||
run: | | ||
twine check dist/* | ||
- name: Generate provenance | ||
uses: slsa-framework/[email protected] | ||
with: | ||
artifact_path: dist/ | ||
- name: Upload provenance | ||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3.1.2 | ||
with: | ||
name: OCSP-Checker provenance | ||
path: build.provenance | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# needs: test | ||
# steps: | ||
# - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3.3.0 | ||
# - name: Set up Python 3.x | ||
# uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # tag=v4.7.1 | ||
# with: | ||
# python-version: "3.9" | ||
# architecture: "x64" | ||
# - name: Install tools | ||
# run: | | ||
# python -m pip install --upgrade pip setuptools wheel | ||
# python -m pip install build twine | ||
# - name: Build pypy package | ||
# run: | | ||
# python -m build | ||
# - name: Check package description | ||
# run: | | ||
# twine check dist/* | ||
# - name: Generate provenance | ||
# uses: slsa-framework/[email protected] | ||
# with: | ||
# artifact_path: dist/ | ||
# - name: Upload provenance | ||
# uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3.1.2 | ||
# with: | ||
# name: OCSPChecker provenance | ||
# path: build.provenance |
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 |
---|---|---|
@@ -1,32 +1,26 @@ | ||
# Usually you do not have to specify amd64, but on an Apple M1 you do if you want to use packages | ||
# that are not optimized for arm64 like NaSSL | ||
FROM --platform=amd64 python:3.11.1-slim-bullseye | ||
FROM --platform=amd64 mcr.microsoft.com/devcontainers/python:3.12-bullseye | ||
|
||
SHELL ["/bin/bash", "--login", "-c"] | ||
#SHELL ["/bin/bash", "--login", "-c"] | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LANG C.UTF-8 | ||
#ENV DEBIAN_FRONTEND noninteractive | ||
#ENV LANG C.UTF-8 | ||
|
||
RUN useradd -m ocspdev | ||
#RUN useradd -m ocspdev | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
netbase \ | ||
curl \ | ||
git \ | ||
bash-completion \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
#RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
# ca-certificates \ | ||
# netbase \ | ||
# curl \ | ||
# git \ | ||
# bash-completion \ | ||
# && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --no-cache-dir --quiet --upgrade pip setuptools wheel \ | ||
pip install --no-cache-dir --quiet pytest pytest-cov && \ | ||
pip install --no-cache-dir --quiet twine && \ | ||
pip install --no-cache-dir --quiet pylint && \ | ||
pip install --no-cache-dir --quiet black | ||
|
||
USER ocspdev | ||
WORKDIR /home/ocspdev | ||
#USER ocspdev | ||
WORKDIR /home/vscode | ||
|
||
# Copy OcspChecker Folder | ||
COPY --chown=ocspdev:ocspdev . /home/ocspdev/OcspChecker/ | ||
COPY --chown=vscode:vscode . /home/vscode/OcspChecker/ | ||
|
||
CMD [ "bash" ] |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pytest==7.4.2 | ||
pytest==8.3.3 | ||
twine==4.0.2 | ||
pylint==2.17.2 | ||
black==23.9.1 | ||
isort==5.12.0 | ||
pylint==3.3.1 | ||
black==24.10.0 | ||
isort==5.13.2 |
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,7 +1,7 @@ | ||
""" __init__.py """ | ||
|
||
__title__ = "ocsp-checker" | ||
__version__ = "1.9.13" | ||
__title__ = "ocspchecker" | ||
__version__ = "1.9.14" | ||
__author__ = "Joe Gatt" | ||
|
||
from ocspchecker.ocspchecker import get_ocsp_status |
Oops, something went wrong.