Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/ci_debug.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
- name: Run test suite
working-directory: ./requirements
run: |
python -m pytest --pyargs rocketry -W error::UserWarning -W error::FutureWarning -W error::DeprecationWarning
python -m pytest --check-build --pyargs rocketry -W error::UserWarning -W error::FutureWarning -W error::DeprecationWarning
2 changes: 1 addition & 1 deletion .github/workflows/test_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Run test suite
run: |
python -m pytest --cov=rocketry --cov-report=xml rocketry/test --no-build
python -m pytest --cov=rocketry --cov-report=xml rocketry/test

- name: Upload test coverage
uses: codecov/codecov-action@v2
48 changes: 0 additions & 48 deletions .github/workflows/test_pr.yml

This file was deleted.

10 changes: 5 additions & 5 deletions rocketry/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

def pytest_addoption(parser):
parser.addoption(
'--no-build',
action='store_false',
dest="is_build",
default=True,
help='Expect the package is not built.'
'--check-build',
action='store_true',
dest="check_build",
default=False,
help='Check the package is built correctly.'
)

# Utils
Expand Down
9 changes: 4 additions & 5 deletions rocketry/test/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import rocketry

def test_build(request):
expect_build = request.config.getoption('is_build')
if not expect_build:
assert rocketry.version == '0.0.0.UNKNOWN'
else:
assert rocketry.version != '0.0.0.UNKNOWN'
verify_build = request.config.getoption('check_build')
if not verify_build:
pytest.skip(reason="Pass '--check-build' to verify the package is built")
assert rocketry.version != '0.0.0.UNKNOWN'