Skip to content

Commit

Permalink
chore: Add a test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed May 30, 2022
1 parent 050f604 commit 244bb99
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test

jobs:
tests:
name: Test on ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
include:
- { python-version: "3.7", os: "ubuntu-latest" }
- { python-version: "3.8", os: "ubuntu-latest" }
- { python-version: "3.9", os: "ubuntu-latest" }
- { python-version: "3.10", os: "ubuntu-latest" }

steps:
- name: Check out the repository
uses: actions/[email protected]

- name: Setup Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Upgrade pip
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
run: |
pip install pip
pip --version
- name: Install Poetry
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
run: |
pipx install poetry
poetry --version
- name: Install Dependencies
run: |
poetry install
- name: Install Dependencies
run: |
poetry install
# TODO: Run complete test suite. Requires setting up some repository secrets
- name: Run tests
run: |
poetry run pytest --doctest-modules singer_sdk
poetry run pytest tests/core
poetry run pytest tests/cookiecutters

0 comments on commit 244bb99

Please sign in to comment.