@@ -26,13 +26,13 @@ jobs:
2626 name : Generic pre-commit checks 
2727 runs-on : ubuntu-22.04 
2828 steps :
29-  - uses : actions/checkout@v4.1.1  
29+  - uses : actions/checkout@v4.1.7  
3030 with :
3131 fetch-depth : 1 
3232
3333 - uses : actions/setup-python@v5 
3434 with :
35-  python-version : 3.9  
35+  python-version : 3.11  
3636
3737 - run : pip install pre-commit 
3838 - run : pre-commit run --all-files 
4141 name : Documentation 
4242 runs-on : ubuntu-22.04 
4343 steps :
44-  - uses : actions/checkout@v4.1.1  
44+  - uses : actions/checkout@v4.1.7  
4545 with :
4646 fetch-depth : 1 
4747 - uses : ammaraskar/sphinx-action@master 
@@ -58,15 +58,12 @@ jobs:
5858 - os : ubuntu-22.04 
5959 python : " 3.9.16" 
6060 tox_env : pytest6 
61-  - os : ubuntu-22.04 
62-  python : " 3.9.16" 
63-  tox_env : pytest53 
6461 fail-fast : false 
6562
6663 name : Tests (Python ${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.tox_env }}) 
6764 runs-on : ${{ matrix.os }} 
6865 steps :
69-  - uses : actions/checkout@v4.1.1  
66+  - uses : actions/checkout@v4.1.7  
7067 with :
7168 fetch-depth : 1 
7269
8380 run : python -m tox 
8481
8582 - name : Upload coverage to Codecov 
86-  uses : codecov/codecov-action@v3.1.4 
83+  uses : codecov/codecov-action@v4.5.0 
84+  with :
85+  token : ${{ secrets.CODECOV_TOKEN }} 
86+ 
87+  #  On windows redirecting output to a file could lead to an error due to the default IO encoding being CP-1252
88+  tests-pipe-with-encoding :
89+  strategy :
90+  matrix :
91+  os : [ubuntu-22.04, windows-2019] 
92+  fail-fast : false 
93+  name : Test piping output to a file with CP1252 encoding on ${{ matrix.os }} 
94+  runs-on : ${{ matrix.os }} 
95+  steps :
96+  - uses : actions/checkout@v4.1.7 
97+  with :
98+  fetch-depth : 1 
99+ 
100+  - uses : actions/setup-python@v5 
101+  with :
102+  python-version : " 3.12" 
103+ 
104+  - run : pip install ".[dev]" 
105+ 
106+  - run : st run /openapi.json --app=cp1252_app:app -c custom_check > out.txt || true 
107+  working-directory : ./test/apps 
108+  env :
109+  SCHEMATHESIS_HOOKS : hooks 
110+  PYTHONIOENCODING : cp1252 
111+ 
112+  - run : | 
113+  if grep -Fq "UnicodeEncodeError" "out.txt"; then 
114+  echo "Failed!" 
115+  exit 1 
116+  fi 
117+  working-directory: ./test/apps 
118+  shell: bash 
0 commit comments