diff --git a/.github/workflows/softwarecheck.yml b/.github/workflows/softwarecheck.yml index cc75edb..4fa8241 100644 --- a/.github/workflows/softwarecheck.yml +++ b/.github/workflows/softwarecheck.yml @@ -33,20 +33,18 @@ jobs: # py2-job: runs-on: ubuntu-latest - container: - image: cmscloud/cc7-cms:latest - options: --user root + steps: - - name: Checking_python_2.7 -# uses: actions/checkout@v4 -# with: -# fetch-depth: 0 - run: | - python -V - ls - git clone --depth 1 https://github.com/oglez/cmsstyle.git - cd cmsstyle - pwd - python -m py_compile src/cmsstyle/cmsstyle.py - ls -lh src/cmsstyle/cmsstyle.pyc -# + - name: Checkout repository (on host) + uses: actions/checkout@v4 + + - name: Run checks inside container + uses: addnab/docker-run-action@v3 + with: + image: cmscloud/cc7-cms:latest + options: --user root -v ${{ github.workspace }}:/code -w /code + run: | + python -V + find . -type f + python -m py_compile src/cmsstyle/cmsstyle.py + ls -lh src/cmsstyle/cmsstyle.pyc \ No newline at end of file