Create static.yml #41
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 Python Wheel | |
on: [push, pull_request] | |
jobs: | |
build_wheel: | |
name: Build Wheel | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' # specify the Python version you want to use | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel | |
- name: Build wheel | |
run: python setup.py bdist_wheel | |
- name: Upload wheel | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wheel | |
path: dist | |
- name: Install tool | |
run: find dist/ -name '*.whl' -type f | xargs pip install | |
- name: Run tool | |
run: fafnir --help |