Skip to content

Commit

Permalink
Add build CI workflow to check packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Aug 16, 2022
1 parent d87958a commit f4d3e68
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build

on: [push, pull_request]

jobs:
build-and-test:
name: Build
runs-on: ubuntu-latest
env:
PYTHON_VERSION: '3.10'

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.10'

- name: Display version
run: |
python --version
pip --version
- name: Install pypa/build
run: |
pip install build
- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Display content dist folder
run: |
ls dist/
- uses: actions/upload-artifact@v3
with:
path: ./dist/*

- name: Install distribution
run: |
pip install --pre --find-links dist rosettasciio[all,tests]
- name: Install HyperSpy (dev)
run: |
pip install https://github.com/hyperspy/hyperspy/archive/refs/heads/RELEASE_next_major.zip
- name: Test distribution
run: |
pytest --pyargs rsciio --reruns 3 -n 2

0 comments on commit f4d3e68

Please sign in to comment.