Skip to content

Commit

Permalink
SECURITY-9304: compatibility with the central test suite
Browse files Browse the repository at this point in the history
Co-authored-by: Laszlo Hammerl <[email protected]>
Co-authored-by: Laszlo Losonczy <[email protected]>
Co-authored-by: Dora Kaszasne Sztanko <[email protected]>
  • Loading branch information
4 people committed Feb 24, 2024
1 parent c909c8e commit 5ac3507
Show file tree
Hide file tree
Showing 189 changed files with 385 additions and 1,047 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -27,11 +29,11 @@ jobs:
python -m pip install --upgrade pip
pip install build
pip install -r requirements-dev.txt
- name: Lint with pep8
- name: Lint with pycodestyle
run: |
pep8 --ignore=E501 escherauth
pycodestyle --ignore=E501 escherauth
- name: Test with nosetests
run: nosetests
run: nose2
- name: Build package
run: python -m build
- name: Publish package
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "test-cases"]
path = test-cases
url = [email protected]:EscherAuth/test-cases.git
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.8.18-alpine3.19

RUN mkdir /escher
WORKDIR /escher

COPY setup.py /escher
COPY requirements-dev.txt /escher

RUN python -m pip install --upgrade pip && \
pip install build && \
pip install -r requirements-dev.txt
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build: ; docker compose build
lint: ; docker compose run --rm escher pycodestyle --ignore=E501 escherauth
test: ; docker compose run --rm escher nose2
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3'
services:
escher:
build: .
volumes:
- .:/escher
Loading

0 comments on commit 5ac3507

Please sign in to comment.