File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Examples Test
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ - ' *.x'
7
+ paths-ignore :
8
+ - ' *.md'
9
+ pull_request :
10
+ paths-ignore :
11
+ - ' *.md'
12
+ jobs :
13
+ local-test :
14
+ name : Local-Ubuntu20.04-Python${{ matrix.python }}
15
+ runs-on : ubuntu-20.04
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ include :
20
+ - {python: '3.12'}
21
+ - {python: '3.11'}
22
+ - {python: '3.10'}
23
+ - {python: '3.9'}
24
+ - {python: '3.8'}
25
+ steps :
26
+ - name : Checkout Code Repository
27
+ uses : actions/checkout@v4
28
+
29
+ - name : Install GCC and Make
30
+ run : sudo apt-get update && sudo apt-get install -y build-essential
31
+
32
+ - name : Set up Python
33
+ uses : actions/setup-python@v5
34
+ with :
35
+ python-version : ${{ matrix.python }}
36
+ cache : pip
37
+ cache-dependency-path : requirements.txt
38
+
39
+ - name : Install Dependencies
40
+ run : |
41
+ python -m pip install --upgrade pip
42
+ pip install poetry
43
+ poetry install --no-root
44
+
45
+ - name : Run Examples Test
46
+ run : poetry run pytest -vs -n auto
47
+
48
+ container-test :
49
+ name : GCC Docker Container
50
+ runs-on : ubuntu-latest
51
+ steps :
52
+ - name : Checkout Code Repository
53
+ uses : actions/checkout@v4
54
+
55
+ - name : Set up Docker
56
+ run : |
57
+ docker pull gcc:latest
58
+
59
+ - name : Run test in Docker
60
+ run : |
61
+ docker run --rm \
62
+ -v ${{ github.workspace }}:/app \
63
+ -w /app \
64
+ gcc:latest \
65
+ sh -c "apt-get update \
66
+ && apt-get install -y python3-pip \
67
+ && pip install poetry --break-system-packages \
68
+ && poetry install --no-root \
69
+ && poetry run pytest -vs -n auto"
You can’t perform that action at this time.
0 commit comments