This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Auto-generate version file at packing (#16)
Signed-off-by: Jason C. Nucciarone <[email protected]>
- Loading branch information
1 parent
7f49eed
commit 91400e3
Showing
5 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,6 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Create version file | ||
run: git describe --tags --always --dirty > version | ||
- name: Select charmhub channel | ||
uses: canonical/charming-actions/[email protected] | ||
id: channel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,20 +18,19 @@ | |
import pathlib | ||
|
||
import pytest | ||
from _pytest.config.argparsing import Parser | ||
from helpers import NHC, VERSION | ||
from helpers import NHC | ||
from pytest_operator.plugin import OpsTest | ||
|
||
|
||
def pytest_addoption(parser: Parser) -> None: | ||
def pytest_addoption(parser) -> None: | ||
parser.addoption( | ||
"--charm-base", action="store", default="[email protected]", help="Charm base to test." | ||
) | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def charm_base(request) -> str: | ||
"""Get slurmdbd charm base to use.""" | ||
"""Get slurmctld charm base to use.""" | ||
return request.config.getoption("--charm-base") | ||
|
||
|
||
|
@@ -45,4 +44,3 @@ async def slurmctld_charm(ops_test: OpsTest): | |
def pytest_sessionfinish(session, exitstatus) -> None: | ||
"""Clean up repository after test session has completed.""" | ||
pathlib.Path(NHC).unlink(missing_ok=True) | ||
pathlib.Path(VERSION).unlink(missing_ok=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters