@@ -11,14 +11,14 @@ jobs:
1111 - name : Installing dependencies
1212 run : |
1313 # installing dependencies
14- python -m pip install --upgrade pip
15- pip install --upgrade flake8
14+ python -m pip install --upgrade -- pip
15+ pip install --upgrade -- flake8
1616 - uses : actions/checkout@v4
1717 with : { path: snapshot }
1818 - name : Executing `flake8`
1919 run : |
2020 # executing `flake8`
21- flake8 --statistics --show-source --max-line-length=128 --extend-ignore=E251,E701 -- snapshot
21+ flake8 --statistics --show-source --max-line-length=128 --extend-ignore=E251,E701 -- ./ snapshot
2222
2323 pytest :
2424 runs-on : ubuntu-latest
3030 # installing dependencies
3131 export DEBIAN_FRONTEND=noninteractive
3232 sudo apt update --assume-yes
33- sudo apt install --assume-yes oci-image-tool
34- python -m pip install --upgrade pip
35- pip install --upgrade pytest pyyaml
33+ sudo apt install --assume-yes -- oci-image-tool
34+ python -m pip install --upgrade -- pip
35+ pip install --upgrade -- pytest pyyaml
3636 mkdir --parents -- ./temporary/bin
3737 cat <<EOF >./temporary/bin/unshare
3838 #!/usr/bin/env python3
@@ -46,11 +46,11 @@ jobs:
4646 os.execv(_podman, ("podman", "unshare", *sys.argv[3:]))
4747 raise RuntimeError("bad state")
4848 EOF
49- chmod +x ./temporary/bin/unshare
49+ chmod +x -- ./temporary/bin/unshare
5050 - uses : actions/checkout@v4
5151 with : { path: snapshot }
5252 - name : Installing this package
53- run : pip install --upgrade ./snapshot
53+ run : pip install --upgrade -- ./snapshot
5454 - id : cache
5555 uses : actions/cache@v4
5656 with :
@@ -60,20 +60,20 @@ jobs:
6060 name : Generating oci images
6161 run : |
6262 # generating oci images
63- mkdir --parents temporary/oci
63+ mkdir --parents -- ./ temporary/oci
6464 docker build --pull --tag=example -- ./snapshot/examples/nginx/docker
6565 buildah build --pull --layers --tag=example -- ./snapshot/examples/nginx/docker
66- buildah push localhost/example oci-archive:temporary/oci/buildah.tar
67- podman image save --format=oci-archive -- localhost/example > temporary/oci/podman.tar
68- skopeo copy docker-daemon:example:latest oci-archive:temporary/oci/docker.tar
66+ buildah push localhost/example oci-archive:./ temporary/oci/buildah.tar
67+ podman image save --format=oci-archive localhost/example >./ temporary/oci/podman.tar
68+ skopeo copy docker-daemon:example:latest oci-archive:./ temporary/oci/docker.tar
6969 - name : Executing `pytest`
7070 run : |
7171 # executing `pytest`
72- PATH="`pwd`/temporary/bin:${PATH}" pytest -ra --basetemp=temporary/pytest \
73- --tests.examples.nginx-source=temporary/oci/docker.tar \
74- --tests.examples.nginx-source=temporary/oci/podman.tar \
75- --tests.examples.nginx-source=temporary/oci/buildah.tar \
76- ./snapshot/tests
72+ PATH="`pwd`/temporary/bin:${PATH}" pytest -ra --basetemp=./ temporary/pytest \
73+ --tests.examples.nginx-source=./ temporary/oci/docker.tar \
74+ --tests.examples.nginx-source=./ temporary/oci/podman.tar \
75+ --tests.examples.nginx-source=./ temporary/oci/buildah.tar \
76+ -- ./snapshot/tests
7777 - if : failure()
7878 run : sudo tar --create --directory=temporary -- . | xz > test-context.tar.xz
7979 - if : failure()
0 commit comments