Skip to content

ci: migrate to github-actions #6

ci: migrate to github-actions

ci: migrate to github-actions #6

name: Verification and validation of the code
on: push
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
verification_validation:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Pre requisite installation
- name: Prerequisite installation
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install poetry
run: pip3 install poetry
# Runs the preparation
- name: Prepare working environment
run: poetry install --all-extras
# Formatting check
- name: Run format check
run: poetry run pre-commit
# Setup tox
- name: Setup tox
run: poetry run pip install tox
# Runs the test
- name: Run unittests
run: poetry run tox run
# Upload the test result
- name: Run doc
run: poetry run invoke docs
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: reports/*.xml'