-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.19 KB
/
makefile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
Build_and_Test:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
# Pythonの環境をセットアップ
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
# 必要なパッケージをインストール
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest numpy scipy
- name: Build
run: make
- name: Test
run: make tests
# テスト結果をアップロードする
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: test_results
path: tests/*/*.xml
# テスト結果をダウンロードする
- name: Download results
uses: actions/download-artifact@v4
with:
name: test_results
path: artifacts
# テスト結果をGitHub上で表示する
- name: Display results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: artifacts/**/*.xml