2024-03-15 14:56:41 +08:00
|
|
|
name: Integration Test
|
2024-05-01 21:06:27 +08:00
|
|
|
on: [push]
|
2024-03-15 14:56:41 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Open-Set-Test:
|
|
|
|
runs-on: archlinux
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: https://git.rrricardo.top/actions/checkout@v4
|
|
|
|
- name: Use nuget package cache
|
|
|
|
uses: https://git.rrricardo.top/actions/cache@v4
|
|
|
|
with:
|
|
|
|
path: ~/.nuget/packages
|
|
|
|
key: ${{ runner.os }}-nuget
|
|
|
|
save-always: true
|
|
|
|
- name: Build binary file
|
|
|
|
run: |
|
2024-05-01 21:06:27 +08:00
|
|
|
cd ./Canon.Console
|
2024-03-15 14:56:41 +08:00
|
|
|
dotnet publish
|
2024-05-01 21:06:27 +08:00
|
|
|
cd ..
|
|
|
|
cp ./Canon.Console/bin/Release/net8.0/linux-x64/publish/Canon.Console ./pascc
|
2024-03-15 14:56:41 +08:00
|
|
|
- name: Build open set binary
|
|
|
|
run: |
|
|
|
|
python scripts/integration_test.py run
|
|
|
|
- name: Run open set test
|
|
|
|
run: |
|
|
|
|
python scripts/integration_test.py test
|