Skip to content

Commit

Permalink
Migrate optional groups to extras
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Mar 6, 2024
1 parent af878f5 commit 0502788
Show file tree
Hide file tree
Showing 7 changed files with 163 additions and 166 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

#------------------------
# install root project
#------------------------
- name: Install library
run: poetry install --no-interaction --with docs,optional_plotting,tutorials
run: poetry install --no-interaction --extras "docs optional_plotting tutorials"

- name: Build the docs
run: poetry run make --directory=docs html
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# update dependencies to latest versions
#------------------------------------------
- name: Update dependencies
run: poetry update --with docs,optional_io_formats,optional_plotting,tests,tutorials --lock
run: poetry update --lock

#------------------------------------
# load cached venv if cache exists
Expand All @@ -68,7 +68,7 @@ jobs:
#------------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --with docs,optional_io_formats,optional_plotting,tests,tutorials --no-root
run: poetry install --no-interaction --extras "docs optional_io_formats optional_plotting tests tutorials" --no-root

#------------------------
# install root project
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Install poetry dynamic versioning plugin
run: poetry self add "poetry-dynamic-versioning[plugin]"

- name: Build package
run: poetry build

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pytest-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
poetry add [email protected] --lock
poetry add [email protected] --lock
poetry add [email protected] --lock
poetry add [email protected] --group optional_io_formats --lock
poetry add [email protected] --extras optional_io_formats --optional --lock
#------------------------------------
# load cached venv if cache exists
Expand All @@ -60,7 +60,7 @@ jobs:
#------------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --with optional_io_formats,optional_plotting,tests,tutorials --no-root
run: poetry install --no-interaction --extras "optional_io_formats optional_plotting tests tutorials" --no-root

#------------------------
# install root project
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# install your project
#------------------------
- name: Install library
run: poetry install --no-interaction --with optional_io_formats,optional_plotting,tests,tutorials
run: poetry install --no-interaction --extras "optional_io_formats optional_plotting tests tutorials"

# run tests without Matplotlib & CodeCode tests on earlier Python versions
- name: Test with pytest
Expand All @@ -77,7 +77,7 @@ jobs:

- name: Upload coverage report to Codecov
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
env_vars: ${{ matrix.os }} py${{ matrix.python-version }}
Loading

0 comments on commit 0502788

Please sign in to comment.