Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

added build-system to pyproject.toml #195

added build-system to pyproject.toml

added build-system to pyproject.toml #195

Workflow file for this run

name: run_tests
on:
workflow_call:
inputs:
workflow-call-ckeck:
description: 'set to true if calling from a workflow. So we can check the trigger and set the secrets accordingly'
required: true
type: boolean
secrets:
MAuserPAT-workflow-call:
required: true
MAuserName-workflow-call:
required: true
push:
# This way it only triggers on branch pushes,
# and ignores releases that push a tag.
branches:
- '**'
jobs:
test-job:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.0
- name: Poetry install
run: poetry install
- if: ${{ inputs.workflow-call-ckeck }}
env:
# Machine user private access token
MAuserPAT: ${{ secrets.MAuserPAT-workflow-call }}
# Machine user name
MAuserName: ${{ secrets.MAuserName-workflow-call }}
run:
poetry run nox -s tests
- if: ${{ inputs.workflow-call-ckeck == false }}
env:
# Machine user private access token
MAuserPAT: ${{ secrets.EXA_CI_TOKEN_FOR_ADDING_AUTOMATIC_DOCUMENTATION }}
# Machine user name
MAuserName: ${{ secrets.EXA_CI_USER_NAME }}
run:
poetry run nox -s tests