separating pinned and unpinned dependencies (#47) #1
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: Build Package and Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request_target: | |
types: [ opened, edited] | |
branches: [ main ] | |
paths: ['pyproject.toml', 'requirements.txt'] | |
jobs: | |
build_wheels: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: ["3.12"] | |
name: Build wheel on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
# Required when using an activated conda environment in steps | |
# See https://github.com/conda-incubator/setup-miniconda#IMPORTANT | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@main | |
- uses: actions/setup-python@v2 | |
name: Install Python | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build Source | |
run: pip install . | |
- name: Install Developer Dependencies | |
run: pip install .[dev] | |
- name: Check Versions of Dependencies | |
run: pip freeze | |
- name: Pytest | |
run: pytest | |