File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : login to Dockerhub (to prevent image trottling)
2
+ runs :
3
+ - name : docker login
4
+ run : bash -ce 'echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin'
5
+ env :
6
+ DOCKERHUB_PASSWORD : {{ secrets.DOCKERHUB_PASSWORD }}
7
+ DOCKERHUB_USERNAME : {{ secrets.DOCKERHUB_USERNAME }}
Original file line number Diff line number Diff line change 4
4
description : " Python version to use"
5
5
required : true
6
6
type : string
7
+ default : 3.12
8
+ outputs :
9
+ ' python-version ' : ${{ inputs.python }}
7
10
runs :
8
11
using : " composite"
9
12
steps :
Original file line number Diff line number Diff line change 14
14
steps :
15
15
- uses : actions/checkout@v5
16
16
- uses : ./.github/actions/setup
17
- with :
18
- python : 3.12
19
17
- name : Lint
20
18
id : lint
21
19
run : tox -e lint
42
40
python : ${{ matrix.python }}
43
41
- name : Test
44
42
run : tox
43
+ smoketest :
44
+ runs-on : ubuntu-latest
45
+ needs : [ 'lint','test' ]
46
+ steps :
47
+ - uses : actions/checkout@v5
48
+ - uses : ./.github/actions/setup
49
+ id : setup
50
+ - uses : ./.github/action/dockerhub-login
51
+ - run : poetry build
52
+ - run : ci/run_tests.sh
53
+ env :
54
+ SMOKETEST_DOCKER_IMAGE : python:${{ steps.setup.outputs.python-version }}
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ SMOKETEST_DOCKER_IMAGE=${SMOKETEST_DOCKER_IMAGE:- " python:3.11" }
4
+
3
5
set -x
4
6
t=$( [ -t 0 ] && echo ' t' )
5
7
docker run -q -i${t} --rm\
6
8
-v $PWD /dist:/dist -v $PWD /_appmap/test/data/unittest:/_appmap/test/data/unittest\
7
9
-v $PWD /ci:/ci\
8
10
-w /tmp\
9
11
-v $PWD /ci/readonly-mount-appmap.log:/tmp/appmap.log:ro\
10
- python:3.11 bash -ce " ${@:-/ ci/ smoketest.sh; / ci/ test_pipenv.sh; / ci/ test_poetry.sh} "
12
+ $SMOKETEST_DOCKER_IMAGE bash -ce " ${@:-/ ci/ smoketest.sh; / ci/ test_pipenv.sh; / ci/ test_poetry.sh} "
You can’t perform that action at this time.
0 commit comments