Skip to content

Commit 0eadedb

Browse files
authored
Debug container failure (#625)
* Debug container failure * Update tests.yml * Update tests.yml * style * Update tests.yml * Update tests.yml * Update tests.yml
1 parent 9a02da4 commit 0eadedb

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,22 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
python-version: [3.8, 3.9, 3.12]
22-
spack-version: [v0.20.3, v0.21.2, v0.22.0, v0.22.1, develop]
22+
spack-version: [v0.20.3, v0.21.2, v0.22.5, v0.23.1, develop]
2323
exclude:
2424
- python-version: 3.12
2525
spack-version: v0.20.3
2626
steps:
2727
- uses: actions/checkout@v4
2828
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v5
29+
# uses: actions/setup-python@v5
30+
# mirror spack-core
31+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
3032
with:
3133
python-version: ${{ matrix.python-version }}
34+
- name: Install Python packages
35+
run: |
36+
pip install --upgrade pip setuptools pytest pytest-xdist pytest-cov
37+
pip install --upgrade flake8 "isort>=4.3.5" "mypy>=0.900" "click" "black"
3238
- name: Checkout Spack
3339
uses: actions/checkout@v4
3440
with:

manager/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
def populate_config():
3434
"""Update the spack-manager config in memory"""
35-
global config_yaml
35+
global config_yaml # noqa: F824
3636
if os.path.isfile(config_path):
3737
with open(config_path, "r") as f:
3838
config_yaml = syaml.load(f)
@@ -43,7 +43,7 @@ def populate_config():
4343

4444

4545
def write_config():
46-
global config_yaml
46+
global config_yaml # noqa: F824
4747
with fs.write_tmp_and_move(os.path.realpath(config_path)) as f:
4848
syaml.dump(config_yaml, f)
4949
populate_config()
@@ -54,7 +54,7 @@ class MissingProjectException(Exception):
5454

5555

5656
def add_project(path):
57-
global config_yaml
57+
global config_yaml # noqa: F824
5858
if path not in config_yaml["spack-manager"]["projects"]:
5959
config_yaml["spack-manager"]["projects"].insert(0, path)
6060
write_config()
@@ -63,7 +63,7 @@ def add_project(path):
6363

6464

6565
def remove_project_via_path(path):
66-
global config_yaml
66+
global config_yaml # noqa: F824
6767
if path in config_yaml["spack-manager"]["projects"]:
6868
config_yaml["spack-manager"]["projects"].remove(path)
6969
write_config()
@@ -72,7 +72,7 @@ def remove_project_via_path(path):
7272

7373

7474
def remove_project_via_index(index):
75-
global config_yaml
75+
global config_yaml # noqa: F824
7676
if len(config_yaml["spack-manager"]["projects"]) > abs(index):
7777
config_yaml["spack-manager"]["projects"].pop(index)
7878
write_config()

0 commit comments

Comments
 (0)