|
15 | 15 | FEDORA_VERSION: 42 |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - build-and-test: |
19 | | - name: Build and test ${{ matrix.arch }} |
| 18 | + build-test-and-push: |
| 19 | + name: Build, test and push ${{ matrix.arch }} |
20 | 20 | runs-on: ubuntu-latest |
21 | 21 | strategy: |
22 | 22 | matrix: |
@@ -48,35 +48,35 @@ jobs: |
48 | 48 | platforms: linux/${{ matrix.arch }} |
49 | 49 | load: true |
50 | 50 | tags: | |
51 | | - fedorapython/fedora-python-tox:test-${{ matrix.arch }} |
| 51 | + fedorapython/fedora-python-tox:${{ matrix.arch }} |
52 | 52 |
|
53 | 53 | - name: Test local project |
54 | 54 | env: |
55 | 55 | TOXENV: ${{ matrix.toxenv }} |
56 | 56 | run: | |
57 | | - docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV fedorapython/fedora-python-tox:test-${{ matrix.arch }} |
| 57 | + docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV fedorapython/fedora-python-tox:${{ matrix.arch }} |
58 | 58 |
|
59 | 59 | - name: Test remote project |
60 | 60 | env: |
61 | 61 | TOXENV: ${{ matrix.toxenv }} |
62 | 62 | run: | |
63 | | - docker run --rm --platform linux/${{ matrix.arch }} -e TOXENV -e GIT_URL=https://github.com/frenzymadness/python-tox-example.git fedorapython/fedora-python-tox:test-${{ matrix.arch }} |
| 63 | + docker run --rm --platform linux/${{ matrix.arch }} -e TOXENV -e GIT_URL=https://github.com/frenzymadness/python-tox-example.git fedorapython/fedora-python-tox:${{ matrix.arch }} |
64 | 64 |
|
65 | 65 | - name: Test parallel run |
66 | 66 | env: |
67 | 67 | TOXENV: ${{ matrix.toxenv }} |
68 | 68 | run: | |
69 | | - docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV -e TOX_PARAMS="-p auto" fedorapython/fedora-python-tox:test-${{ matrix.arch }} |
| 69 | + docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV -e TOX_PARAMS="-p auto" fedorapython/fedora-python-tox:${{ matrix.arch }} |
70 | 70 |
|
71 | 71 | - name: Test dnf install and wheel build |
72 | 72 | env: |
73 | 73 | TOXENV: ${{ matrix.toxenv }} |
74 | 74 | run: | |
75 | | - docker run --rm --platform linux/${{ matrix.arch }} -e DNF_INSTALL="libffi-devel 'pkgconfig(libgit2) >= 1.9' /usr/bin/cowsay" fedorapython/fedora-python-tox:test-${{ matrix.arch }} sh -c "/run_tests.sh; pip install -I --no-deps --compile --no-binary :all: cffi pygit2~=1.17.0 && cowsay DONE" |
| 75 | + docker run --rm --platform linux/${{ matrix.arch }} -e DNF_INSTALL="libffi-devel 'pkgconfig(libgit2) >= 1.9' /usr/bin/cowsay" fedorapython/fedora-python-tox:${{ matrix.arch }} sh -c "/run_tests.sh; pip install -I --no-deps --compile --no-binary :all: cffi pygit2~=1.17.0 && cowsay DONE" |
76 | 76 |
|
77 | 77 | - name: Test external project with WORKDIR |
78 | 78 | run: | |
79 | | - docker run --rm --platform linux/${{ matrix.arch }} -e TOXENV=py3 -e GIT_URL=https://github.com/frenzymadness/nflxprofile.git -e WORKDIR=python fedorapython/fedora-python-tox:test-${{ matrix.arch }} |
| 79 | + docker run --rm --platform linux/${{ matrix.arch }} -e TOXENV=py3 -e GIT_URL=https://github.com/frenzymadness/nflxprofile.git -e WORKDIR=python fedorapython/fedora-python-tox:${{ matrix.arch }} |
80 | 80 |
|
81 | 81 | - name: Login to DockerHub |
82 | 82 | if: github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' |
|
99 | 99 | release: |
100 | 100 | name: Create multi-platform manifests |
101 | 101 | if: github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' |
102 | | - needs: build-and-test |
| 102 | + needs: build-test-and-push |
103 | 103 | runs-on: ubuntu-latest |
104 | 104 | steps: |
105 | 105 | - name: Set up Docker Buildx |
|
0 commit comments