Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
delucchi-cmu committed Feb 2, 2024
2 parents ea8589c + 361c564 commit a7a5d6c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ jobs:
if: ${{ !contains(matrix.copier_config.extra_flags, 'create_example_module=no') }}
run: |
cd ../test/${{ matrix.copier_config.foldername }}
python -m pytest tests --cov=${{ matrix.copier_config.package_name }} --cov-report=xml
python -m pytest --cov=${{ matrix.copier_config.package_name }} --cov-report=xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
pip list
- name: Run unit tests with pytest
run: |
python -m pytest tests
python -m pytest
{%- if 'email' in failure_notification %}
- name: Send failure email
{%- endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run unit tests with pytest
run: |
python -m pytest tests --cov={{package_name}} --cov-report=xml
python -m pytest --cov={{package_name}} --cov-report=xml
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion tests/test_package_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def unit_tests_in_project_run_successfully(result, package_name = "example_packa
virtual environment for the project.
"""
pytest_results = subprocess.run(
["python", "-m", "pytest", (result.project_dir / f"tests/{package_name}")],
["python", "-m", "pytest"],
cwd=result.project_dir
)

Expand Down

0 comments on commit a7a5d6c

Please sign in to comment.