Skip to content

Commit

Permalink
Seperated pr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryamanz29 committed Jan 23, 2024
1 parent 3fcf1ff commit be8cb7a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,30 @@ on:
workflow_dispatch:

jobs:
pyatlan-pr-tests:
pyatlan-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Run unit tests
env: # Test tenant environment variables
ATLAN_API_KEY: ${{ secrets.ATLAN_API_KEY }}
ATLAN_BASE_URL: ${{ secrets.ATLAN_BASE_URL }}
MARK_API_KEY: ${{ secrets.MARK_ATLAN_API_KEY }}
MARK_BASE_URL: https://mark.atlan.com
run: pytest tests/unit

pyatlan-integration-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -47,14 +70,6 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Run unit tests
env: # Test tenant environment variables
ATLAN_API_KEY: ${{ secrets.ATLAN_API_KEY }}
ATLAN_BASE_URL: ${{ secrets.ATLAN_BASE_URL }}
MARK_API_KEY: ${{ secrets.MARK_ATLAN_API_KEY }}
MARK_BASE_URL: https://mark.atlan.com
run: pytest tests/unit

- name: Run integration tests
env: # Test tenant environment variables
ATLAN_API_KEY: ${{ secrets.ATLAN_API_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Pytest cron job

on:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # At 01:00 Daily
Expand Down

0 comments on commit be8cb7a

Please sign in to comment.