2/merge -> Test ( 1 ) #6
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [master, main] | |
# only when python files are changed | |
paths: | |
- '**.py' | |
pull_request: | |
branches: [master, main] | |
workflow_dispatch: | |
# set the run-name | |
run-name: ${{ github.ref_name }} -> Test ( | |
${{ github.run_attempt }} | |
) | |
jobs: | |
lint: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current date and time | |
id: datetime | |
run: | | |
datetime=$(date +'%Y-%m-%dT%H-%M-%SZ') | |
echo "datetime=$datetime" >> $GITHUB_OUTPUT | |
- name: Display date/time in output (forensics when triaging issues) | |
run: echo ${{ steps.datetime.outputs.datetime }} | |
- name: Checkout Code | |
uses: actions/[email protected] | |
- name: Set up Python 3.11 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
pip install pytest | |
- name: Run tests | |
run: | | |
pytest --log-level DEBUG --tenant_id ${{ vars.TEST_TENANT_ID}} --client_id ${{ vars.TEST_CLIENT_ID }} --client_secret ${{ secrets.TEST_CLIENT_SECRET }} tests |