Skip to content

Commit a25cb9c

Browse files
committed
ci: Add GitHub Actions smoke test
1 parent c3221cb commit a25cb9c

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/workflows/checks.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Run Checks
2+
3+
on:
4+
push
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: openapi-generators/openapi-python-client-action@updates
12+
with:
13+
openapi-url: https://raw.githubusercontent.com/openapi-generators/openapi-python-client/main/end_to_end_tests/openapi.json

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
FROM python:3.9-slim
22

33
RUN python -m pip install --upgrade pip
4-
RUN pip install pipx
54

65
# Sets the user to the same user that the workflow runner uses so that it can access the generated client
7-
USER 1001
6+
USER 1001
87

98
COPY entrypoint.sh /entrypoint.sh
109

entrypoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ if [[ "$openapi_url" != "NOT_SPECIFIED" ]]; then
2424
openapi_document_path_or_url_arg="--url=${openapi_url}"
2525
fi
2626

27-
pipx install "${version_arg}" --include-deps
27+
PATH=$PATH:/github/home/.local/bin
28+
pip install "${version_arg}"
2829
openapi-python-client generate ${config_arg} ${openapi_document_path_or_url_arg}

0 commit comments

Comments
 (0)