File tree Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -2,22 +2,41 @@ name: Tests
2
2
on :
3
3
workflow_call :
4
4
workflow_dispatch :
5
+
5
6
jobs :
6
7
test :
7
8
runs-on : ubuntu-latest
8
- container :
9
- image : python:3.12-slim
10
- env :
11
- YEPCODE_API_TOKEN : ${{ secrets.TEST_YEPCODE_API_TOKEN }}
9
+ strategy :
10
+ matrix :
11
+ python-version : ["3.11", "3.12", "3.13"]
12
+ fail-fast : false
13
+
12
14
steps :
13
15
- uses : actions/checkout@v4
16
+
17
+ - name : Set up Python ${{ matrix.python-version }}
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : ${{ matrix.python-version }}
21
+
22
+ - name : Install system dependencies
23
+ run : |
24
+ sudo apt-get update
25
+ sudo apt-get install -y curl gcc g++
26
+
14
27
- name : Configure poetry
15
- run : |-
16
- apt update && apt install -y curl gcc g++ && curl -sSL https://install.python-poetry.org | python3 -
28
+ run : |
29
+ curl -sSL https://install.python-poetry.org | python3 -
17
30
export PATH="${PATH}:${HOME}/.local/bin"
18
31
echo "${HOME}/.local/bin" >> $GITHUB_PATH
19
32
poetry install
33
+ env :
34
+ YEPCODE_API_TOKEN : ${{ secrets.TEST_YEPCODE_API_TOKEN }}
35
+
20
36
- name : Run pytest
21
37
run : " poetry run pytest"
38
+ env :
39
+ YEPCODE_API_TOKEN : ${{ secrets.TEST_YEPCODE_API_TOKEN }}
40
+
22
41
- name : Build
23
42
run : " poetry build"
You can’t perform that action at this time.
0 commit comments