File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed
Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments