Skip to content

Commit e57d274

Browse files
Added Workflow for running integration tests
1 parent 1fb1a86 commit e57d274

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
pytest:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.9", "3.12"]
14+
#
15+
# This allows a subsequently queued workflow run to interrupt previous runs
16+
concurrency:
17+
group: "${{ github.workflow }}-${{ matrix.python-version}}-${{ matrix.os }} @ ${{ github.ref }}"
18+
cancel-in-progress: true
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
cache: "pip"
27+
# You can test your matrix by printing the current Python version
28+
- name: Display Python version
29+
run: python3 -c "import sys; print(sys.version)"
30+
31+
- name: Install dependencies
32+
run: python3 -m pip install --upgrade turftopic[pyro-ppl] pandas pytest
33+
34+
- name: Run tests
35+
run: python3 -m pytest tests/
36+

0 commit comments

Comments
 (0)