From ce6b963b9f39d53c434d3b3b3a53be2fe4368378 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Mon, 8 Apr 2024 14:12:22 +0200 Subject: [PATCH 1/9] Create ci.yml --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d71d755 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest From 20b3164747fff54f3d9c5b5be294fe714dda7b41 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Mon, 8 Apr 2024 14:14:15 +0200 Subject: [PATCH 2/9] Bump version --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e916b17..6f1e294 100755 --- a/setup.py +++ b/setup.py @@ -28,8 +28,8 @@ def readme(): return f.read() setup(name='astro-pyxis', - version='1.7.5', - python_requires='>=3.0.0', + version='1.7.6', + python_requires='>=3.8', description='Python Extensions for astronomical Interferometry Scripting', author='Oleg Smirnov', author_email='Oleg Smirnov ', From 131d3e40b18051514414080137479a90541c784a Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 16 Apr 2024 12:12:00 +0200 Subject: [PATCH 3/9] Update ci.yml --- .github/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d71d755..91fa43b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,12 +13,15 @@ permissions: contents: read jobs: - test: - runs-on: ubuntu-latest + build: + runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + os: [ ubuntu-22.04 ] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + include: + - os: ubuntu-20.04 + python-version: "3.6" steps: - uses: actions/checkout@v3 - name: Set up Python 3.10 @@ -33,9 +36,9 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=Pyxis/doc/example/* # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=Pyxis/doc/example/* - name: Test with pytest run: | pytest From 829df4c731219309805e834f300ebcc57b8dc919 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 16 Apr 2024 12:15:17 +0200 Subject: [PATCH 4/9] Python version requirement --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6f1e294..5de1ddb 100755 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ def readme(): setup(name='astro-pyxis', version='1.7.6', - python_requires='>=3.8', + python_requires='>=3.0.0', description='Python Extensions for astronomical Interferometry Scripting', author='Oleg Smirnov', author_email='Oleg Smirnov ', From 344eb7d1fdb2616007aa26ee66caf057eb08d0d6 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 16 Apr 2024 12:38:08 +0200 Subject: [PATCH 5/9] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91fa43b..2e3aaf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,16 +23,16 @@ jobs: - os: ubuntu-20.04 python-version: "3.6" steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + python -m pip install flake8 pytest + python -m pip install . -U - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names From 062a5562c9795cee6f676c07fdf5438c7348f19b Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 16 Apr 2024 12:44:15 +0200 Subject: [PATCH 6/9] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e3aaf0..0423c2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=Pyxis/doc/example/* + flake8 . --count --select=E9,F63,F7,F82,F821 --show-source --statistics --exclude=Pyxis/doc/example/* # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=Pyxis/doc/example/* - name: Test with pytest From f1349940a36ba0113ab1ee4cd8772dd8bfa91a2d Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 16 Apr 2024 12:52:37 +0200 Subject: [PATCH 7/9] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0423c2e..863cc44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82,F821 --show-source --statistics --exclude=Pyxis/doc/example/* + flake8 . --count --select=E9,F63,F7,F82 --ignore=F821 --show-source --statistics --exclude=Pyxis/doc/example/* # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=Pyxis/doc/example/* - name: Test with pytest From 862d39c8817a0e0fd00a969d10e4e812039117cf Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 16 Apr 2024 12:54:35 +0200 Subject: [PATCH 8/9] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 863cc44..ad51620 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --ignore=F821 --show-source --statistics --exclude=Pyxis/doc/example/* + flake8 . --count --select=E9,F63,F7,F82 --ignore=F821,F632 --show-source --statistics --exclude=Pyxis/doc/example/* # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=Pyxis/doc/example/* - name: Test with pytest From e2c5ee341b90be6d4a369ae5943802a99ea0e2c6 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 16 Apr 2024 13:00:56 +0200 Subject: [PATCH 9/9] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad51620..666e7e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,6 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --ignore=F821,F632 --show-source --statistics --exclude=Pyxis/doc/example/* # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=Pyxis/doc/example/* - - name: Test with pytest + - name: Test pyxis command run: | - pytest + pyxis --help