Skip to content

Commit

Permalink
Added Workflow for running integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tabdeveloping committed Mar 13, 2024
1 parent 1fb1a86 commit e57d274
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
#
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }}-${{ matrix.python-version}}-${{ matrix.os }} @ ${{ github.ref }}"
cancel-in-progress: true

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python3 -c "import sys; print(sys.version)"

- name: Install dependencies
run: python3 -m pip install --upgrade turftopic[pyro-ppl] pandas pytest

- name: Run tests
run: python3 -m pytest tests/

0 comments on commit e57d274

Please sign in to comment.