Skip to content

Merge pull request #115 from LPSim/issue-82 #63

Merge pull request #115 from LPSim/issue-82

Merge pull request #115 from LPSim/issue-82 #63

Workflow file for this run

# test build CI, all the steps are the same as publish.yml, except will not publish
# to pypi or doing tests.
name: Test Build
on:
workflow_dispatch:
push:
jobs:
test:
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for setuptools_scm
fetch-tags: true # Fetch all tags for setuptools_scm
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Fetch tags and print
run: |
git tag
python -m setuptools_scm
- name: Create distributions
run: |
python -m build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: package
path: dist/*