Skip to content

--- (#123)

--- (#123) #229

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