Skip to content

Commit de2c6e3

Browse files
authored
Merge pull request #64 from ttedeschi/fix-ci
fix py2.7 CI check
2 parents 6a6f2b3 + e1fe972 commit de2c6e3

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/softwarecheck.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,18 @@ jobs:
3333
#
3434
py2-job:
3535
runs-on: ubuntu-latest
36-
container:
37-
image: cmscloud/cc7-cms:latest
38-
options: --user root
36+
3937
steps:
40-
- name: Checking_python_2.7
41-
# uses: actions/checkout@v4
42-
# with:
43-
# fetch-depth: 0
44-
run: |
45-
python -V
46-
ls
47-
git clone --depth 1 https://github.com/oglez/cmsstyle.git
48-
cd cmsstyle
49-
pwd
50-
python -m py_compile src/cmsstyle/cmsstyle.py
51-
ls -lh src/cmsstyle/cmsstyle.pyc
52-
#
38+
- name: Checkout repository (on host)
39+
uses: actions/checkout@v4
40+
41+
- name: Run checks inside container
42+
uses: addnab/docker-run-action@v3
43+
with:
44+
image: cmscloud/cc7-cms:latest
45+
options: --user root -v ${{ github.workspace }}:/code -w /code
46+
run: |
47+
python -V
48+
find . -type f
49+
python -m py_compile src/cmsstyle/cmsstyle.py
50+
ls -lh src/cmsstyle/cmsstyle.pyc

0 commit comments

Comments
 (0)