Major update from practice use in cassandra project #728
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- development | |
pull_request: | |
branches: | |
- main | |
- development | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# needed for miniconda | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: yaib | |
environment-file: environment.yml | |
auto-activate-base: false | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# the GitHub editor is 127 chars wide | |
flake8 . --count --max-complexity=20 --max-line-length=127 --statistics | |
# - name: Test with pytest | |
# run: python -m pytest ./tests/recipes | |
# If we want to test running the tool later on | |
# - name: Setup package | |
# run: pip install -e . | |
# - name: Test command line tool | |
# run: python -m icu_benchmarks.run --help |