Python CI #2
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: Python CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: setup ruff | |
run: pip install -e .[dev] | |
- name: ruff linting | |
run: ruff varprodmdstatspy | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: setup python unittests | |
run: pip install -e .[dev] | |
- name: python unittests | |
run: pytest tests/ | |
# - name: make distcheck | |
# run: make distcheck | |