Update validation-tests.yaml #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validation Test Plots | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
branches: [ main ] | |
release: | |
types: [ published ] | |
workflow_dispatch: {} | |
permissions: | |
actions: write | |
contents: write | |
deployments: write | |
pages: write | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.7.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Install dependencies | |
run: | | |
poetry install --no-interaction --no-root | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Run Tests | |
run: | | |
source .venv/bin/activate | |
dotnet run --project TestConsole/TestsConsole.csproj | |
- name: Run Report Generator | |
run: | | |
source .venv/bin/activate | |
python TestGraphs/report.py | |
- name: Get current date | |
id: date | |
run: | | |
echo "{date}={$(date +'%Y-%m-%d')}" >> $GITHUB_ENV | |
- name: Deploy to GitHub pages 🚀 | |
if: github.event_name != 'pull_request' | |
uses: JamesIves/[email protected] | |
with: | |
clean: false | |
branch: gh-pages | |
folder: html | |
token: ${{ secrets.GITHUB_TOKEN }} | |