Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/hdruk/2.2 #24

Merged
merged 24 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 58 additions & 59 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,61 @@ name: Pytest
on: [push]

jobs:
check_json:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check JSON
run: |
file_path="available.json"
if [ -f "$file_path" ]; then
if jq . "$file_path" >/dev/null 2>&1; then
echo "JSON file is valid."
else
echo "JSON file is not valid."
exit 1
fi
else
echo "JSON file does not exist."
exit 1
fi

test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install schema module
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
python -m pip install -e .

- name: Run pytest
run: |
cd hdr_schemata/tests/
pytest
deploy:
runs-on: ubuntu-latest
needs: test
if: success() && github.ref == 'refs/heads/master'
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- run: pip3 install -r requirements.txt
- name: deploy
run: |
mkdocs gh-deploy --force

check_json:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check JSON
run: |
file_path="available.json"
if [ -f "$file_path" ]; then
if jq . "$file_path" >/dev/null 2>&1; then
echo "JSON file is valid."
else
echo "JSON file is not valid."
exit 1
fi
else
echo "JSON file does not exist."
exit 1
fi

test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install schema module
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
python -m pip install -e .

- name: Run pytest
run: |
cd hdr_schemata/tests/
pytest
deploy:
runs-on: ubuntu-latest
needs: test
if: success() && github.ref == 'refs/heads/master'
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/checkout@v2
with:
submodules: "recursive"
- run: pip3 install -r requirements.txt
- name: deploy
run: |
mkdocs gh-deploy --force
3 changes: 2 additions & 1 deletion available.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"2.1.2",
"2.1.3",
"2.1.0",
"2.0.2"
"2.0.2",
"2.2.0"
],
"GWDM": [
"1.0",
Expand Down
Loading
Loading