Skip to content

Commit d1d3b8c

Browse files
committed
Merge branch 'dev' into vas
2 parents c0260ff + 10452d2 commit d1d3b8c

File tree

474 files changed

+28236
-4286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

474 files changed

+28236
-4286
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
github: Stranger6667
2-
open_collective: schemathesis

.github/workflows/build.yml

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -41,7 +41,7 @@ jobs:
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

@@ -83,4 +80,39 @@ jobs:
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

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v4.1.1
33+
uses: actions/checkout@v4.1.7
3434
with:
3535
# We must fetch at least the immediate parents so that if this is
3636
# a pull request then we can checkout the head.
3737
fetch-depth: 2
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: Initialize CodeQL
41-
uses: github/codeql-action/init@v3.23.0
41+
uses: github/codeql-action/init@v3.25.15
4242
with:
4343
languages: ${{ matrix.language }}
4444
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -49,7 +49,7 @@ jobs:
4949
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5050
# If this step fails, then you should remove it and run the build manually (see below)
5151
- name: Autobuild
52-
uses: github/codeql-action/autobuild@v3.23.0
52+
uses: github/codeql-action/autobuild@v3.25.15
5353

5454
# ℹ️ Command-line programs to run using the OS shell.
5555
# 📚 https://git.io/JvXDl
@@ -63,4 +63,4 @@ jobs:
6363
# make release
6464

6565
- name: Perform CodeQL Analysis
66-
uses: github/codeql-action/analyze@v3.23.0
66+
uses: github/codeql-action/analyze@v3.25.15

.github/workflows/codspeed.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
benchmarks:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4.1.1
14+
- uses: actions/checkout@v4.1.7
1515
- uses: actions/setup-python@v5
1616
with:
1717
# Python 3.12 for flamegraph support
@@ -21,7 +21,7 @@ jobs:
2121
run: pip install ".[bench]"
2222

2323
- name: Run benchmarks
24-
uses: CodSpeedHQ/action@v2
24+
uses: CodSpeedHQ/action@v3
2525
with:
2626
token: ${{ secrets.CODSPEED_TOKEN }}
2727
run: pytest benches/* --codspeed -p no:schemathesis -p no:hypothesispytest -p no:subtests -p no:anyio

.github/workflows/commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Check out code
15-
uses: actions/checkout@v4.1.1
15+
uses: actions/checkout@v4.1.7
1616
with:
1717
fetch-depth: 0
1818
- name: Run commitsar

.github/workflows/example-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-22.04
1717

1818
steps:
19-
- uses: actions/checkout@v4.1.1
19+
- uses: actions/checkout@v4.1.7
2020

2121
- name: Start containers
2222
run: docker compose up -d --build

.github/workflows/master_update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
tag: "latest-bookworm"
2121

2222
steps:
23-
- uses: actions/checkout@v4.1.1
23+
- uses: actions/checkout@v4.1.7
2424

2525
- name: Set up QEMU
2626
uses: docker/setup-qemu-action@v3
@@ -42,7 +42,7 @@ jobs:
4242
password: ${{ secrets.GITHUB_TOKEN }}
4343

4444
- name: Build and push
45-
uses: docker/build-push-action@v5
45+
uses: docker/build-push-action@v6
4646
with:
4747
context: .
4848
file: ${{ matrix.dockerfile }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
tag-suffix: "-bookworm"
2020

2121
steps:
22-
- uses: actions/checkout@v4.1.1
22+
- uses: actions/checkout@v4.1.7
2323

2424
- name: Docker meta
2525
id: meta
@@ -55,7 +55,7 @@ jobs:
5555
password: ${{ secrets.GITHUB_TOKEN }}
5656

5757
- name: Build and push
58-
uses: docker/build-push-action@v5
58+
uses: docker/build-push-action@v6
5959
with:
6060
context: .
6161
file: ${{ matrix.dockerfile }}
@@ -68,7 +68,7 @@ jobs:
6868
name: Build and publish package to pypi.org
6969
runs-on: ubuntu-22.04
7070
steps:
71-
- uses: actions/checkout@v4.1.1
71+
- uses: actions/checkout@v4.1.7
7272
with:
7373
fetch-depth: 1
7474

.github/workflows/scheduled.yml

Lines changed: 0 additions & 142 deletions
This file was deleted.

.github/workflows/test-corpus.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run corpus tests
2+
3+
on:
4+
schedule:
5+
# Every day at 00:00
6+
- cron: "0 0 * * *"
7+
push:
8+
paths:
9+
- "test-corpus/openapi-directory"
10+
workflow_dispatch:
11+
12+
jobs:
13+
14+
test-corpus:
15+
name: Corpus tests
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- uses: actions/checkout@v4.1.7
19+
with:
20+
fetch-depth: 1
21+
submodules: true
22+
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.11"
26+
27+
- run: pip install ".[tests]"
28+
- run: pytest test-corpus -n auto

0 commit comments

Comments
 (0)