Merge pull request #23 from pythonhealthdatascience/dev #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file runs the tests in `tests/` | |
# They will run in parallel, and run on three operating systems: | |
# Ubuntu, Windows and Mac. | |
name: tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
# Run tests on Ubuntu | |
tests-on-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install python and dependencies | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.13' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- name: Run tests | |
run: pytest | |
- name: List the environment variables | |
run: env | |
# Run tests on Windows | |
tests-on-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install python and dependencies | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.13' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- name: Run tests | |
run: pytest | |
- name: List the environment variables | |
run: env | |
# Run tests on Mac | |
tests-on-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install python and dependencies | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.13' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- name: Run tests | |
run: pytest | |
- name: List the environment variables | |
run: env |