Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-treebeard committed Oct 25, 2023
1 parent ca3705c commit 4e6a17e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
- run: npm install -g @devcontainers/[email protected]
- run: devcontainer up --workspace-folder=.
- run: devcontainer exec --workspace-folder=. poetry run pre-commit run --verbose --all-files
- run: devcontainer exec --workspace-folder=. poetry run pytest --cov-report=xml --cov=src
- uses: codecov/codecov-action@v1
with:
file: coverage.xml
Expand All @@ -25,8 +24,8 @@ jobs:
- macos-latest
python-version:
- "3.8"
# - "3.9"
# - "3.10"
- "3.9"
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -40,5 +39,3 @@ jobs:
- uses: codecov/codecov-action@v1
with:
file: coverage.xml

# TODO README and workflows for e2e test, package release, devcon build
4 changes: 2 additions & 2 deletions .github/workflows/test-publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
pull_request:
jobs:
build-n-publish:
runs-on: ubuntu-22.04
Expand All @@ -15,10 +16,9 @@ jobs:
build_version="$(poetry version -s).dev$(date +%s)"
poetry version $build_version
- run: poetry build
- run: pip install 'pytest==7.1'
- run: pip install dist/*gz --force-reinstall
- run: pip install nbmake nbformat nbclient # necessary for running smoke test
- run: nbwrite tests/resources/nbwrite-in/example.yaml
- run: nbwrite tests/resources/nbwrite-in/minimal.yaml
env:
OPENAI_API_KEY: '${{ secrets.OPENAI_API_KEY }}'
- run: pip install dist/*whl --force-reinstall
Expand Down

0 comments on commit 4e6a17e

Please sign in to comment.