Skip to content

Commit 0c11475

Browse files
committed
Back to original
1 parent 5ef8f2e commit 0c11475

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

.github/workflows/actions.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
- name: docker-compose up
11-
# env:
12-
# COMPOSE_INTERACTIVE_NO_CLI: 1
11+
env:
12+
COMPOSE_INTERACTIVE_NO_CLI: 1
1313
run: docker-compose up -d
1414
- name: Check running containers
1515
run: docker-compose ps -a
1616
- name: Check logs
1717
run: docker-compose logs app
1818
- name: Test with pytest
19-
# env:
20-
# COMPOSE_INTERACTIVE_NO_CLI: 1
19+
env:
20+
COMPOSE_INTERACTIVE_NO_CLI: 1
2121
run: docker-compose exec app pytest

readme.md

+40
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,44 @@ Run locally:
44
```
55
docker-compose up -d
66
docker-compose exec app pytest
7+
```
8+
9+
# GitHub actions failure
10+
```
11+
Test with pytest1s
12+
##[error]Process completed with exit code 255.
13+
Run docker-compose exec app pytest
14+
[3233] Failed to execute script docker-compose
15+
Traceback (most recent call last):
16+
File "site-packages/dockerpty/pty.py", line 334, in start
17+
File "site-packages/dockerpty/pty.py", line 367, in _hijack_tty
18+
File "site-packages/dockerpty/io.py", line 59, in select
19+
File "site-packages/dockerpty/io.py", line 351, in fileno
20+
File "site-packages/dockerpty/io.py", line 103, in fileno
21+
File "socket.py", line 638, in fileno
22+
ValueError: I/O operation on closed file.
23+
24+
During handling of the above exception, another exception occurred:
25+
26+
Traceback (most recent call last):
27+
File "bin/docker-compose", line 6, in <module>
28+
File "compose/cli/main.py", line 72, in main
29+
File "compose/cli/main.py", line 128, in perform_command
30+
File "compose/cli/main.py", line 519, in exec_command
31+
File "site-packages/dockerpty/pty.py", line 338, in start
32+
File "site-packages/dockerpty/io.py", line 32, in set_blocking
33+
File "site-packages/dockerpty/io.py", line 351, in fileno
34+
File "site-packages/dockerpty/io.py", line 103, in fileno
35+
File "socket.py", line 638, in fileno
36+
ValueError: I/O operation on closed file.
37+
##[error]Process completed with exit code 255.
38+
```
39+
40+
# GitHub actions without setting COMPOSE_INTERACTIVE_NO_CLI env variable
41+
```
42+
Test with pytest1s
43+
##[error]Process completed with exit code 1.
44+
Run docker-compose exec app pytest
45+
the input device is not a TTY
46+
##[error]Process completed with exit code 1.
747
```

0 commit comments

Comments
 (0)