Skip to content

Commit bf3e5fa

Browse files
committed
Update CI workflow: clean up steps, gate example tests to Python 3.13
1 parent 23fd58b commit bf3e5fa

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,24 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323

2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

2929

3030
- name: Install dependencies
3131
run: pip install -e .[test]
3232

33-
- name: Test with pytest
34-
run: |
35-
if [ "${{ matrix.python-version }}" == "3.11" ]; then
36-
pytest
37-
else
38-
pytest -k "not example"
39-
fi
33+
- name: Run tests
34+
run: pytest -k "not example"
4035
env:
41-
API_KEY: ${{secrets.API_KEY}}
36+
API_KEY: ${{ secrets.API_KEY }}
37+
38+
- name: Run example tests
39+
if: matrix.python-version == '3.13'
40+
run: pytest -k "example"
41+
env:
42+
API_KEY: ${{ secrets.API_KEY }}

0 commit comments

Comments
 (0)