-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f8d21a
commit 6180fee
Showing
99 changed files
with
1,851 additions
and
20 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,71 @@ | ||
name: Options tests with build rest:dev | ||
|
||
on: | ||
schedule: | ||
- cron: "05 04 * * *" | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build and run Docker Image | ||
run: | | ||
docker build --build-arg GH_CHECKOUT=integration -t ghcr.io/verapdf/rest:dev . && docker run --user root -d -p 8080:8080 -p 8081:8081 -e VERAPDF_MAX_FILE_SIZE=1 -v /tmp:/home/Res_tmp ghcr.io/verapdf/rest:dev | ||
echo whoami: $(docker inspect $(docker ps -q) --format '{{.Config.User}} {{.Name}}') | ||
- name: Check Docker Container | ||
run: | | ||
docker images | ||
docker ps | ||
- name: Preparing Linux packages(Bats-core and more ...) | ||
if: runner.os == 'Linux' | ||
working-directory: ./tests | ||
run: | | ||
echo whoami: $(whoami) | ||
mkdir ./results | ||
sudo apt-get update -y | ||
sudo apt install git -y | ||
sudo apt-get install python3 -y | ||
sudo apt-get install python3-pip -y | ||
sudo pip install junit2html | ||
echo $(pip list) | ||
git --version | ||
echo "Adding: bats-core.git, bats-support.git and bats-assert.git" | ||
git clone https://github.com/bats-core/bats-core.git ./bats | ||
git clone https://github.com/bats-core/bats-support.git ./bats-support | ||
git clone https://github.com/bats-core/bats-assert.git ./bats-assert | ||
./bats/bin/bats -v | ||
- name: Running tests ... Options | ||
working-directory: ./tests | ||
run: | | ||
echo pwd: $PWD | ||
echo dir: $(ls ./) | ||
./bats/bin/bats -r ./Options --show-output-of-passing-tests --print-output-on-failure --report-formatter junit --output ./results | ||
- name: Generating report | ||
if: always() | ||
working-directory: ./tests/results | ||
run: | | ||
echo pwd: $PWD | ||
junit2html report.xml --report-matrix report.html | ||
- name: Uploading report | ||
uses: actions/upload-artifact@v1 | ||
if: success() || failure() | ||
with: | ||
name: Results | ||
path: "./tests/results" |
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,46 @@ | ||
name: Rest-api tests - ghcr.io/verapdf/rest:dev | ||
|
||
on: | ||
schedule: | ||
- cron: "05 04 * * *" | ||
push: | ||
|
||
jobs: | ||
test: | ||
name: Rest-api tests running in Docker container | ||
runs-on: ubuntu-latest | ||
container: ubuntu | ||
services: | ||
verarest: | ||
image: ghcr.io/verapdf/rest:dev | ||
ports: | ||
- 8080:8080 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Preparing Linux packages(Python and more ...) | ||
if: runner.os == 'Linux' | ||
run: | | ||
echo pwd: $PWD | ||
echo dir: $(ls ./) | ||
apt-get update -y | ||
apt-get install python3 -y | ||
apt-get install python3-pip -y | ||
pip install -r requirements.txt | ||
echo $(pip list) | ||
echo pwd: $PWD | ||
- name: Running rest-api tests ... | ||
run: | | ||
mkdir ./results | ||
echo dir: $(ls ./) | ||
pytest --base_url=http://verarest:8080 --html=./results/report.html ./tests/ | ||
- name: Generating report | ||
uses: actions/upload-artifact@v1 | ||
if: success() || failure() | ||
with: | ||
name: Results | ||
path: "./results" |
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,11 @@ | ||
[[source]] | ||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.9" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,31 @@ | ||
annotated-types==0.6.0 | ||
black==23.11.0 | ||
certifi==2023.7.22 | ||
charset-normalizer==3.3.2 | ||
click==8.1.7 | ||
exceptiongroup==1.1.3 | ||
idna==3.4 | ||
iniconfig==2.0.0 | ||
Jinja2==3.1.2 | ||
loguru==0.7.2 | ||
lxml==4.9.3 | ||
MarkupSafe==2.1.3 | ||
mypy-extensions==1.0.0 | ||
packaging==23.2 | ||
pathspec==0.11.2 | ||
platformdirs==3.11.0 | ||
pluggy==1.3.0 | ||
pydantic==2.4.2 | ||
pydantic-core==2.10.1 | ||
pydantic-xml==2.4.0 | ||
pydentic==0.0.1.dev3 | ||
pytest==7.4.3 | ||
pytest-html==4.1.1 | ||
pytest-metadata==3.0.0 | ||
python-stdnum==1.19 | ||
requests==2.31.0 | ||
soupsieve==2.5 | ||
tomli==2.0.1 | ||
typing-extensions==4.8.0 | ||
urllib3==2.0.7 | ||
xmltodict==0.13.0 |
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.