Skip to content

Commit 04441b5

Browse files
authored
Merge pull request #8 from cicirello/disable-pycache
Disabled generation of a pycache
2 parents e24050e + dba3ca8 commit 04441b5

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Python
1919
uses: actions/setup-python@v3
2020
with:
21-
python-version: '3.8'
21+
python-version: '3.10'
2222

2323
- name: Run Python unit tests
2424
run: python3 -u -m unittest tests/tests.py

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# If all you need is Python 3, use:
2-
FROM cicirello/pyaction-lite:3
3-
41
# If you need Python 3 and the GitHub CLI, then use:
5-
# FROM cicirello/pyaction:4
2+
FROM cicirello/pyaction:4
3+
4+
# If all you need is Python 3, use:
5+
# FROM cicirello/pyaction-lite:3
66

77
# If Python 3 + git is sufficient, then use:
88
# FROM cicirello/pyaction:3

entrypoint.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S python3 -B
2+
3+
# NOTE: If you are using an alpine docker image
4+
# such as pyaction-lite, the -S option above won't
5+
# work. The above line works fine on other linux distributions
6+
# such as debian, etc, so the above line will work fine
7+
# if you use pyaction:4.0.0 or higher as your base docker image.
28

39
import sys
410

0 commit comments

Comments
 (0)