Start of Three-Body Module #13
Workflow file for this run
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
name: Test Package | |
on: | |
push: | |
branches: | |
- '*' # Trigger on push to any branch | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install build dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install build | |
- name: Build the package | |
run: | | |
python -m build | |
- name: Install the package | |
run: | | |
python -m pip install dist/*.whl | |
- name: Install test dependencies | |
run: | | |
python -m pip install .[test] | |
- name: Run tests | |
run: | | |
pytest |