Skip to content

Commit

Permalink
test on different python version (#17)
Browse files Browse the repository at this point in the history
* Bump gitpython from 3.1.40 to 3.1.41 in /anomaly-detector (#4)

Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.40 to 3.1.41.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](gitpython-developers/GitPython@3.1.40...3.1.41)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jinja2 from 3.1.2 to 3.1.3 in /anomaly-detector (#6)

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](pallets/jinja@3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add build workflow

* add build workflow

* add build workflow

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* test poetry install

* merge

* add more test cases

* delete some uvad test cases

* delete some uvad test cases

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add different python version

* add caching packages dependencies

* add cache dependencies to boost test

* add cache dependencies to boost test

* Update ci.yml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
CodeFree-xzk and dependabot[bot] authored Jan 25, 2024
1 parent 24e8554 commit 6b170e6
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 52 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9', '3.10.8', '3.11', '3.12' ]
python-version: [ '3.9', '3.10.8', '3.11']


# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -31,11 +32,19 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: setup python ${{matrix.python-version}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
cache: 'poetry'

- name: install dependence
working-directory: anomaly-detector
run: poetry install
run: |
poetry env use ${{matrix.python-version}}
poetry install
- name: gen .pyd file
- name: compile .pyx file
run: |
pip install Cython
pip install numpy
Expand All @@ -46,7 +55,7 @@ jobs:
run: |
pip install pytest
poetry run pytest test_demo.py
poetry run python uvad_test.py
- name: Analyze code with pylint
run: |
Expand All @@ -57,14 +66,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9', '3.10.8', '3.11', '3.12' ]
python-version: [ '3.9', '3.10.8', '3.11']
steps:
- uses: actions/checkout@v4

- name: setup python ${{matrix.python-version}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
cache: 'pip'

- name: gen .whl file by setup
run: |
pip install Cython
pip install numpy
pip install Cython numpy setuptools wheel
python setup.py sdist bdist_wheel
- name: install .whl file
Expand All @@ -75,7 +89,7 @@ jobs:
run: |
pip install pytest
python test_demo.py
# python uvad_test.py
python uvad_test.py
test_on_setup:
runs-on: ubuntu-latest
Expand All @@ -93,4 +107,4 @@ jobs:
run: |
pip install pytest
python test_demo.py
# python uvad_test.py
python uvad_test.py
135 changes: 95 additions & 40 deletions anomaly-detector/poetry.lock

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

2 changes: 1 addition & 1 deletion anomaly-detector/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build = "build.py"

[tool.poetry.dependencies]
python = "^3.9"
numpy = "^1.25.2"
numpy = "1.23.5"
pandas = "^1.3.5"
seasonal = "^0.3.1"
scipy = "^1.9.3"
Expand Down
Loading

0 comments on commit 6b170e6

Please sign in to comment.