Skip to content

Commit

Permalink
Merge pull request #35 from usharerose/fix-env
Browse files Browse the repository at this point in the history
fix: environment install
  • Loading branch information
usharerose authored Jun 26, 2024
2 parents 603143f + e5e8b52 commit cadcb77
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 15 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ jobs:
python-version: 3.11

- name: Install Dependencies
env:
POETRY_VERSION: 1.4.2
POETRY_NO_INTERACTION: 1
POETRY_VIRTUALENVS_CREATE: false
run: |
pip install poetry==1.4.2
poetry install --no-interaction
pip install poetry
poetry install
- name: Publish to PyPI
env:
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
env:
POETRY_VERSION: 1.4.2
POETRY_NO_INTERACTION: 1
POETRY_VIRTUALENVS_CREATE: false
run: |
pip install poetry==1.4.2
poetry install --no-interaction
pip install poetry
poetry install
- name: Run lint check
run: make lint
Expand All @@ -46,9 +50,13 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
env:
POETRY_VERSION: 1.4.2
POETRY_NO_INTERACTION: 1
POETRY_VIRTUALENVS_CREATE: false
run: |
pip install poetry==1.4.2
poetry install --no-interaction
pip install poetry
poetry install
- name: Run type hint check
run: make type-hint
Expand All @@ -68,9 +76,13 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
env:
POETRY_VERSION: 1.4.2
POETRY_NO_INTERACTION: 1
POETRY_VIRTUALENVS_CREATE: false
run: |
pip install poetry==1.4.2
poetry install --no-interaction
pip install poetry
poetry install
- name: Run unittest cases
run: make test
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
python-version: 3.7

- name: Install Dependencies
env:
POETRY_VERSION: 1.4.2
POETRY_NO_INTERACTION: 1
POETRY_VIRTUALENVS_CREATE: false
run: |
pip install poetry==1.4.2
poetry install --no-interaction
pip install poetry
poetry install
- name: Run unittest cases
run: make test
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ ssh:
docker-compose exec deloreans-run /bin/sh

test:
poetry run python -m pytest -sv --cov-report term-missing --cov-report html:coverage_report --cov-report xml:coverage_report/cov.xml --junitxml=coverage_report/pytest.xml --cov=deloreans/ --disable-warnings -p no:cacheprovider tests/*
python -m pytest -sv --cov-report term-missing --cov-report html:coverage_report --cov-report xml:coverage_report/cov.xml --junitxml=coverage_report/pytest.xml --cov=deloreans/ --disable-warnings -p no:cacheprovider tests/*

testd: build clean-container
docker-compose up --exit-code-from deloreans-test deloreans-test

lint:
poetry run python -m flake8 deloreans/ tests/
python -m flake8 deloreans/ tests/

lintd: build clean-container
docker-compose up --exit-code-from deloreans-lint deloreans-lint

type-hint:
poetry run python -m mypy deloreans/
python -m mypy deloreans/

type-hintd: build clean-container
docker-compose up --exit-code-from deloreans-type-hint deloreans-type-hint
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

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

1 comment on commit cadcb77

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py30100% 
api.py70100% 
app.py57885%40, 46, 62–63, 86–87, 108–109
date_utils
   __init__.py29872%23, 36–39, 44–46
   common.py173994%324, 331, 361, 369, 382, 395, 401, 408, 414
   date_granularity.py119893%23, 36, 43, 56, 65, 74, 76, 85
   date_range.py300100% 
   offset_granularity.py250100% 
TOTAL4433392% 

Tests Skipped Failures Errors Time
111 0 💤 0 ❌ 0 🔥 0.417s ⏱️

Please sign in to comment.