Skip to content

[pre-commit.ci] pre-commit autoupdate #580

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #580

Workflow file for this run

name: Check Build
on: [push, pull_request]
jobs:
check-build:
name: Check Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install check-build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --user build twine
- name: Build source tarball
run: python -m build --sdist --outdir dist/ .
- name: Check with twine
run: twine check dist/*
- name: Extract sdist
run: |
cd dist
tar -xf yt_idv*.tar.gz
rm yt_idv*.tar.gz
cd ..
- name: install from sdist
run: |
cd dist/yt_idv*/
pip install .
python -c "import yt_idv; print(yt_idv.__version__)"