chore(#31): added additional logging and reformatted #8
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: Python Unittest ChurchToolsAPI | |
on: [ push, pull_request ] | |
env: | |
CT_TOKEN: ${{ secrets.CT_TOKEN }} | |
CT_USERS: ${{ secrets.CT_USERS }} | |
CT_DOMAIN: ${{ vars.CT_DOMAIN }} | |
jobs: | |
list-domain: | |
runs-on: ubuntu-latest | |
environment: ev_kirche_baiersbronn | |
steps: | |
- name: show CT_DOMAIN for this job | |
run: echo $CT_DOMAIN | |
test: | |
runs-on: ubuntu-latest | |
environment: ev_kirche_baiersbronn | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.x' | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
poetry config virtualenvs.create false # Skip creating a virtual environment | |
env: | |
POETRY_HOME: ${{ github.workspace }}/.poetry | |
- name: Install project dependencies | |
run: | | |
poetry install | |
env: | |
POETRY_HOME: ${{ github.workspace }}/.poetry | |
- name: Run Tests | |
run: | | |
pytest tests/* | |
env: | |
POETRY_HOME: ${{ github.workspace }}/.poetry |