build #3
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: build | |
on: [workflow_dispatch, workflow_call] | |
jobs: | |
build-sdist: | |
name: Build sdist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Optional, use if you use setuptools_scm | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install hatch | |
- name: Build | |
run: | | |
# add packages that are supposed to be built to this list | |
for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi | |
do | |
pushd packages/$package | |
hatch build | |
popd | |
done | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: dist/* |