-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (40 loc) · 1.07 KB
/
build-and-test.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
name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
8.x
- name: Setup dotnet tools
run: dotnet tool restore
- name: Install src dependencies
run: dotnet restore src
- name: Install test dependencies
run: dotnet restore test
- name: Install pytest runner
run: pip install pytest
- name: Install build dependencies
run: dotnet restore Build.fsproj
#- name: Check formatting
# run: dotnet fantomas . -r --check
- name: Build
run: dotnet run Build --configuration Release --no-restore
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Test
run: dotnet run Test