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

trigger doc builder #393

Merged
merged 63 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
12d0204
trigger doc builder
vergauwenthomas Nov 9, 2023
a5cc1b3
restrict poetry version
vergauwenthomas Nov 9, 2023
44a9cd5
try without explicit version control on numpy
vergauwenthomas Nov 9, 2023
e9e7686
force numpy to 1.26.0 (as on my local env)
vergauwenthomas Nov 9, 2023
8bf599c
try without dev group
vergauwenthomas Nov 9, 2023
394e29b
with --only arg
vergauwenthomas Nov 9, 2023
50aea35
without the update
vergauwenthomas Nov 9, 2023
1a3f0bb
explicit add poetry run for sphinx build
vergauwenthomas Nov 9, 2023
683af69
poetry with default deps
vergauwenthomas Nov 9, 2023
e63c227
new test with recent poetry version
vergauwenthomas Nov 9, 2023
6740ba8
without np explicit
vergauwenthomas Nov 9, 2023
49beb0e
set back to requirements
vergauwenthomas Nov 10, 2023
f4b511d
pfff again utils error ... is this a poetry bug?
vergauwenthomas Nov 10, 2023
0e3f458
add python3 -m explicit before pip
vergauwenthomas Nov 10, 2023
d043e15
test doc building in the python matrix of the master test script
vergauwenthomas Nov 10, 2023
9ba0e51
add pandoc to doc dep group
vergauwenthomas Nov 10, 2023
09f94b6
pandoc version update
vergauwenthomas Nov 10, 2023
b616e2a
try with pandoc docker
vergauwenthomas Nov 10, 2023
825617c
update pandoc version
vergauwenthomas Nov 10, 2023
4e4c356
install pandoc system wide test1
vergauwenthomas Nov 10, 2023
9bed71d
remove docker
vergauwenthomas Nov 10, 2023
2874234
test deploying
vergauwenthomas Nov 10, 2023
64435dd
updated the workflows
vergauwenthomas Nov 10, 2023
718fbec
test the version check
vergauwenthomas Nov 10, 2023
1dd2ebb
test2
vergauwenthomas Nov 10, 2023
6a35292
test3
vergauwenthomas Nov 10, 2023
2424397
test4
vergauwenthomas Nov 10, 2023
6ec6318
test5
vergauwenthomas Nov 10, 2023
1d5ca83
test6
vergauwenthomas Nov 10, 2023
50e32e9
test7
vergauwenthomas Nov 10, 2023
2a8aa54
test8
vergauwenthomas Nov 10, 2023
3b08dc6
test9
vergauwenthomas Nov 10, 2023
6edabba
test10
vergauwenthomas Nov 10, 2023
41f47ee
test11
vergauwenthomas Nov 10, 2023
3d9a6d6
test12
vergauwenthomas Nov 10, 2023
34a1070
test14
vergauwenthomas Nov 10, 2023
1d17cf1
test15
vergauwenthomas Nov 10, 2023
7ad6c5f
test func
vergauwenthomas Nov 10, 2023
6c5cc27
what is happening?
vergauwenthomas Nov 10, 2023
54e68d7
hunk
vergauwenthomas Nov 10, 2023
61c45e2
strange ...
vergauwenthomas Nov 10, 2023
c37c1ec
with some gpt help maybe?
vergauwenthomas Nov 10, 2023
aa9ccb1
trigger error
vergauwenthomas Nov 10, 2023
9b9a40a
bring all checks together
vergauwenthomas Nov 10, 2023
a081121
cleanup identation
vergauwenthomas Nov 10, 2023
8521273
without all extras for tests
vergauwenthomas Nov 10, 2023
c64d882
cleanup
vergauwenthomas Nov 10, 2023
09eb049
combine to one workflow file
vergauwenthomas Nov 10, 2023
d846587
fix identation
vergauwenthomas Nov 10, 2023
979fc9a
syntax test
vergauwenthomas Nov 10, 2023
2c7e9a9
syntax fixes
vergauwenthomas Nov 10, 2023
5d62871
Update master_test.yml
vergauwenthomas Nov 10, 2023
885eaa1
all in one workflow'
vergauwenthomas Nov 10, 2023
d883169
Update main_workflow.yml
vergauwenthomas Nov 10, 2023
793fb72
trigger os testing
vergauwenthomas Nov 10, 2023
fe5b6a6
possible fix
vergauwenthomas Nov 10, 2023
1808239
os testing without titan
vergauwenthomas Nov 10, 2023
42dee4d
Update main_workflow.yml
vergauwenthomas Nov 10, 2023
ca94064
Update main_workflow.yml
vergauwenthomas Nov 10, 2023
00d135c
Update main_workflow.yml
vergauwenthomas Nov 10, 2023
de99a7f
test without titan in pyproject
vergauwenthomas Nov 10, 2023
b041875
test with poetry update --without titan
vergauwenthomas Nov 10, 2023
c52a162
cleanup
vergauwenthomas Nov 10, 2023
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
30 changes: 0 additions & 30 deletions .github/workflows/build_and_deploy_doc.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/build_and_deploy_doc_dev.yml

This file was deleted.

178 changes: 178 additions & 0 deletions .github/workflows/main_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
name: Test pushed version

on: [push]

jobs:
#---- Run tests -----#
run-tests:
name: run test scripts
runs-on: ${{ matrix.os }}
strategy:
# You can use PyPy versions in python-version.
# For example, pypy-2.7 and pypy-3.8
matrix:
python-version: ["3.9", "3.10"]
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
node-version: [12.x]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
#cache: 'poetry'
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install poetry
run: |
pip install poetry

- name: Install dependencies and build
run: |
poetry update
poetry install
- name: Run tests
run: |
poetry run python tests/push_test/gap_and_fill_test.py
poetry run python tests/push_test/IO_test.py
poetry run python tests/push_test/qc_test.py
poetry run python tests/push_test/breaking_test.py
#poetry run python tests/push_test/gui_launch_test.py
poetry run python tests/push_test/analysis_test.py

#--- Package os installation ---
mac_install_testing:
name: Installation on Mac latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python39
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install poetry
run: |
pip install poetry
- name: Install dependencies and build
run: |
poetry update --without titan,documentation
poetry install --without titan,documentation
- name: Run tests
run: |
poetry run python tests/push_test/import_test.py

windows_install_testing:
name: Installation on Windows latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python39
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install poetry
run: |
pip install poetry
- name: Install dependencies and build
run: |
poetry update --without titan,documentation
poetry install --without titan,documentation
- name: Run tests
run: |
poetry run python tests\push_test\import_test.py



#---- Version Control -----#
versiontest:
name: check if version is valid
needs: run-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get version
id: 'version_info'
run: |
CURRENT_VERSION="$(grep -oP '__version__ = "\K\d+\.\d+\.\d+' metobs_toolkit/__init__.py)"
echo "current version (init) = ${CURRENT_VERSION}"
echo "::set-output name=current_version::$CURRENT_VERSION"
PYPROJECT_VERSION="$(grep -oP 'version = "\K\d+\.\d+\.\d+' pyproject.toml)"
echo "current version (pyproject) = ${PYPROJECT_VERSION}"
echo "::set-output name=pyproject_version::$PYPROJECT_VERSION"
- name: version-is-correct
if: ${{ steps.version_info.outputs.current_version != steps.version_info.outputs.pyproject_version }}
run: |
echo "version tags are not aligned!"
exit 1

#---- Documentation build -----#
doctests:
name: documentation-test
#needs: versiontest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python39
uses: actions/setup-python@v4
with:
python-version: '3.9'
#cache: 'poetry'
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install pandoc (system wide)
run: |
sudo apt-get -y install pandoc
- name: Install poetry
run: |
pip install poetry
- name: Install dependencies and build
run: |
poetry update
poetry install --all-extras
poetry build
- name: Build documentation
run: |
poetry show
poetry run sphinx-build -a -E docs _build

#---- Deploy documentation -----#
deploy_doc:
name: Deploy main documentation
needs: [doctests,run-tests,versiontest,mac_install_testing, windows_install_testing]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: deploy artifact
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true

deploy_doc_dev:
name: Deploy dev documentation
needs: [doctests]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
steps:
- uses: actions/checkout@v3
- name: deploy artifact
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages-dev
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true







48 changes: 0 additions & 48 deletions .github/workflows/master_test.yml

This file was deleted.

32 changes: 26 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading