From c03b706c632cdd82060c9ab9efdd8aa131de8f8f Mon Sep 17 00:00:00 2001 From: Mokhtar FANDOULI Date: Sun, 25 Aug 2024 04:15:14 +0200 Subject: [PATCH 1/2] =?UTF-8?q?[Feature]=20=E2=9C=A8=20added=20tox,=20upda?= =?UTF-8?q?ted=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-tests.yml | 21 ++++++++++++++------- tox.ini | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 tox.ini diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 3a3844f..2e2120f 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -5,11 +5,18 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ '3.8' ] steps: - - uses: actions/checkout@main - - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - run: pip install -r requirements.txt - - run: coverage run --source=. -m pytest -v tests && coverage report -m - - run: flake8 + - uses: actions/checkout@main + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@main + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + python -m pip install tox tox-gh-actions + - name: Test with tox + run: tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..dc48699 --- /dev/null +++ b/tox.ini @@ -0,0 +1,20 @@ +[tox] +envlist = py38 + +[gh-actions] +python = + 3.8: py38 + +[testenv] +description = "Test environment" +allowlist_externals = + sed +passenv = + HOME +deps = + -rrequirements.txt + pytest-cov +commands = + coverage run --source=. -m pytest -v tests + coverage report -m + flake8 From 2b0c9c4514adf27adff119ce3d98bbb535c05877 Mon Sep 17 00:00:00 2001 From: Mokhtar Date: Wed, 20 Nov 2024 18:40:18 +0100 Subject: [PATCH 2/2] =?UTF-8?q?[Feature]=20=E2=9C=A8=20updated=20requireme?= =?UTF-8?q?nts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c606b71..5d697b2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,5 @@ matplotlib>=3.4.3 seaborn>=0.11.2 colorcet>=3.0.1 pandas>=1.3.4 -google>=3.0.0 \ No newline at end of file +google>=3.0.0 +tox==4.23.2