[MSUE-232] - Add typing. Apply code linters. Update documentation #28
Workflow file for this run
This file contains hidden or 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: CI-WORKFLOW | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
permissions: | |
contents: read | |
env: | |
mock_version_python3: "5.0.1" | |
requests_version_python3: "2.28.2" | |
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} | |
API_KEY: ${{ secrets.API_KEY }} | |
jobs: | |
build-and-test-python3: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10.14" | |
- name: Install test dependencies | |
run: | | |
pip install requests=="${{ env.requests_version_python3 }}" | |
- name: Run tests | |
run: | | |
python -m unittest discover | |
run-integration-tests-python3: | |
runs-on: ubuntu-latest | |
if: ${{ github.ref == 'refs/heads/master' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10.14" | |
- name: run-integration-tests-python3 | |
run: | | |
pip3 install . | |
python3 test_integration_app/main.py |