Continuous Integration #230
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: Continuous Integration | |
on: | |
push: | |
paths: | |
- 'src/tfc/**' | |
- 'tests/**' | |
- 'setup.py' | |
workflow_dispatch: | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- run: "python -m pip install black" | |
- name: lint | |
run: "python -m black --line-length 100 --check ./src/tfc" | |
- run: "sudo apt-get update && sudo apt-get install -y swig gcc g++" | |
- run: python -m pip install wheel setuptools numpy pytest | |
- run: python setup.py bdist_wheel | |
- run: pip install ./dist/*.whl | |
- name: python tests | |
run: pytest tests |