Skip to content

Commit

Permalink
poetry run everything
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonvt committed May 30, 2024
1 parent 2195395 commit a8d6810
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,3 @@ runs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
shell: bash
run: poetry install --no-interaction ${{ inputs.extras }}

- name: Source venv
shell: bash
run: source $VENV
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
with:
extras: '-E numpy'
- name: Linting and static code checks
run: pre-commit run --all-files
run: poetry run pre-commit run --all-files

build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Build docs
run: cd docs && make html SPHINXOPTS="-W --keep-going"
run: cd docs && poetry run make html SPHINXOPTS="-W --keep-going"

build_package:
runs-on: ubuntu-latest
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test core
run: pytest tests/tests_unit -n8 --dist loadscope --maxfail 10 -m 'not dsl' --test-deps-only-core
poetry run tests/tests_unit -n8 --dist loadscope --maxfail 10 -m 'not dsl' --test-deps-only-core

test_full:
runs-on: ${{ matrix.os }}
Expand All @@ -64,7 +64,7 @@ jobs:
COGNITE_PROJECT: python-sdk-test
COGNITE_BASE_URL: https://greenfield.cognitedata.com
COGNITE_CLIENT_NAME: python-sdk-integration-tests
run: pytest tests --durations=10 --cov=cognite --cov-report=xml:coverage.xml -n8 --dist=loadscope --reruns 2 --maxfail 20
poetry run tests --durations=10 --cov=cognite --cov-report=xml:coverage.xml -n8 --dist=loadscope --reruns 2 --maxfail 20

- uses: codecov/codecov-action@v4
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
Expand Down

0 comments on commit a8d6810

Please sign in to comment.