diff --git a/.github/workflows/edgetest.yml b/.github/workflows/edgetest.yml index b92b2f8c..f011f88e 100644 --- a/.github/workflows/edgetest.yml +++ b/.github/workflows/edgetest.yml @@ -18,6 +18,6 @@ jobs: - id: run-edgetest uses: fdosani/run-edgetest-action@v1.2 with: - edgetest-flags: '-c setup.cfg --export' + edgetest-flags: '-c pyproject.toml --export' base-branch: 'main' skip-pr: 'false' diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 660555be..a7b5de3d 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,10 +27,9 @@ jobs: channels: conda-forge channel-priority: true activate-environment: rubicon-ml-docs - environment-file: docs/docs-environment.yml - name: Install rubicon-ml run: | - pip install --no-deps -e . + pip install -e ".[docs]" - name: Build run: | cd docs diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index c9259d68..6f7b2160 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -28,8 +28,10 @@ jobs: miniforge-variant: Mambaforge channels: conda-forge channel-priority: true - activate-environment: rubicon-ml-dev - environment-file: environment.yml + activate-environment: rubicon-ml-tests + - name: Install rubicon-ml + run: | + pip install ".[tests]" - name: Check formatting with black run: | black --check rubicon_ml/ tests/ @@ -41,7 +43,7 @@ jobs: flake8 rubicon_ml/ tests/ - name: Validate build run: | - python setup.py sdist bdist_wheel + python -m build . --wheel pip install dist/rubicon_ml-*.whl - name: Test with pytest run: |