Skip to content

Commit cf81346

Browse files
authored
Debugging build failures in actions (#207)
* Debugging build failures in actions Signed-off-by: vsoch <[email protected]> Co-authored-by: vsoch <[email protected]>
1 parent 20663e6 commit cf81346

File tree

117 files changed

+1434
-1394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1434
-1394
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ build_singularity: &install_singularity
5151
./mconfig -p /usr/local && \
5252
make -C builddir && \
5353
sudo make -C builddir install
54-
54+
5555
install_spython: &install_spython
5656
name: install spython
5757
command: |-
@@ -90,7 +90,7 @@ run_linter: &run_linter
9090
9191
test_spython: &test_spython
9292
name: Test Singularity Python
93-
command: |-
93+
command: |-
9494
export PATH=~/conda/Python3/bin:$PATH
9595
pytest ~/repo/spython
9696

.docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# You can specify multiple suffix as a list of string:
5656
#
5757
# source_suffix = ['.rst', '.md']
58-
from recommonmark.parser import CommonMarkParser
58+
from recommonmark.parser import CommonMarkParser # noqa
5959

6060
source_parsers = {
6161
".md": CommonMarkParser,

.github/dev-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pre-commit
2+
black
3+
isort
4+
flake8

.github/workflows/main.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
8-
branches_ignore: []
7+
pull_request: []
98

109
jobs:
1110
formatting:
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1514

1615
- name: Check Spelling
1716
uses: crate-ci/typos@592b36d23c62cb378f6097a292bc902ee73f93ef # version 1.0.4
@@ -21,18 +20,12 @@ jobs:
2120
- name: Setup black linter
2221
run: conda create --quiet --name black pyflakes
2322

24-
- name: Lint python code with black
23+
- name: Lint and format Python code
2524
run: |
2625
export PATH="/usr/share/miniconda/bin:$PATH"
2726
source activate black
28-
pip install black
29-
black --check spython
30-
31-
- name: Check unused imports with pyflakes
32-
run: |
33-
export PATH="/usr/share/miniconda/bin:$PATH"
34-
source activate black
35-
pyflakes spython/oci spython/image.py spython/instance spython/main
27+
pip install -r .github/dev-requirements.txt
28+
pre-commit run --all-files
3629
3730
pytest:
3831
runs-on: ubuntu-latest
@@ -42,21 +35,17 @@ jobs:
4235
python-version: [3.7, 3.8, 3.9]
4336

4437
steps:
45-
- uses: actions/checkout@v2
46-
- uses: eWaterCycle/setup-singularity@bebf1d6f54f9d2d159ac5c15385912dc39b23711 # v7 release
47-
with:
48-
singularity-version: 3.8.4
38+
- uses: actions/checkout@v3
39+
- uses: singularityhub/install-singularity@main
4940
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v2
41+
uses: actions/setup-python@v4
5142
with:
5243
python-version: ${{ matrix.python-version }}
5344

5445
- name: Install dependencies
5546
run: |
56-
sudo ln -s $SINGULARITY_ROOT/bin/singularity /usr/bin/
5747
python -m pip install --upgrade pip
5848
pip install pytest semver pytest-runner requests
5949
6050
- name: Run unit tests
61-
run: |
62-
pytest
51+
run: pytest -xs spython/tests/test*.py

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
pip install setuptools wheel twine
2323
- name: Build and publish
2424
env:
25-
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
25+
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
2626
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
2727
run: |
2828
export PATH="/usr/share/miniconda/bin:$PATH"

.github/workflows/update-contributors.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
steps:
1313
- name: Checkout Repository
1414
uses: actions/checkout@v2
15-
- name: Tributors Update
15+
- name: Tributors Update
1616
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
with:
19+
with:
2020
parsers: unset
2121
update_lookup: github
2222
log_level: DEBUG

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
exclude: ".all-contributorsrc"
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.3.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: check-case-conflict
8+
- id: check-docstring-first
9+
- id: mixed-line-ending
10+
11+
- repo: local
12+
hooks:
13+
- id: black
14+
name: black
15+
language: python
16+
types: [python]
17+
entry: black
18+
19+
- id: isort
20+
name: isort
21+
args: [--filter-files]
22+
language: python
23+
types: [python]
24+
entry: isort
25+
26+
- id: flake8
27+
name: flake8
28+
language: python
29+
types: [python]
30+
entry: flake8

.tributors

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@
7777
"name": "Tony Pan",
7878
"blog": "https://github.com/tcpan"
7979
}
80-
}
80+
}

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# CHANGELOG
22

3-
This is a manually generated log to track changes to the repository for each release.
4-
Each section should include general headers such as **Implemented enhancements**
5-
and **Merged pull requests**. All closed issued and bug fixes should be
3+
This is a manually generated log to track changes to the repository for each release.
4+
Each section should include general headers such as **Implemented enhancements**
5+
and **Merged pull requests**. All closed issued and bug fixes should be
66
represented by the pull requests that fixed them.
77
Critical items to know are:
88

@@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
1717
singularity on pypi), and the versions here will coincide with these releases.
1818

1919
## [master](https://github.com/singularityhub/singularity-cli/tree/master)
20+
- dropping support for Singularity 2.x (0.3.0)
2021
- add comment out of STOPSIGNAL (0.2.14)
2122
- sudo `-E` flag should not be provided by default (0.2.13)
2223
- WORKDIR should create container for Singularity converter (0.2.12)

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ all your interactions with the project members and users.
2525
4. The project's default copyright and header have been included in any new
2626
source files.
2727
5. All (major) changes to Singularity Python Client must be documented in
28-
[docs](docs). If your PR changes a core functionality, please
29-
include clear description of the changes in your PR so that the docs
28+
[docs](docs). If your PR changes a core functionality, please
29+
include clear description of the changes in your PR so that the docs
3030
can be updated, or better, submit another PR to update the docs directly.
3131
6. If necessary, update the README.md.
3232
7. The pull request will be reviewed by others, and the final merge must be
@@ -98,7 +98,7 @@ an incident. Further details of specific enforcement policies may be posted
9898
separately.
9999

100100
Project maintainers, contributors and users who do not follow or enforce the
101-
Code of Conduct in good faith may face temporary or permanent repercussions
101+
Code of Conduct in good faith may face temporary or permanent repercussions
102102
with their involvement in the project as determined by the project's leader(s).
103103

104104
## Attribution

0 commit comments

Comments
 (0)