Skip to content

Commit

Permalink
idiomatic-specific GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hemidactylus committed Feb 28, 2024
1 parent ea77276 commit 0450643
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/idiomatic_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run Pytest on Idiomatic

on:
push:
branches:
- pymongo-convergence-m1
pull_request:
branches:
- pymongo-convergence-m1

jobs:
test:
env:
ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_DB_API_ENDPOINT }}
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
ASTRA_DB_ID: ${{ secrets.ASTRA_DB_ID }}
TEST_SKIP_COLLECTION_DELETE: ${{ secrets.TEST_SKIP_COLLECTION_DELETE }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run pytest
run: |
poetry run pytest tests/idiomatic
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- master
- pymongo-convergence-m1
pull_request:
branches:
- master
- pymongo-convergence-m1

jobs:
mypy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Pytest
name: Run Pytest on Astrapy

on:
push:
Expand Down Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Run pytest
run: |
poetry run pytest
poetry run pytest tests/astrapy

0 comments on commit 0450643

Please sign in to comment.