Add a note about install_all.sh #21
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: CICD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
workflow_dispatch: | |
jobs: | |
All: | |
name: Build and test BL_Python | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip | |
./install_all.sh | |
- name: Test with pyright | |
run: | | |
pyright | |
- name: Test with pytest | |
run: | | |
echo Running pytest | |
# infra is not set up to support integration tests, so ignore postgresql | |
# etl has been updated, while the tests have not been | |
pytest --junitxml pytest.xml \ | |
-k "not acceptance" | |
- name: Output pytest report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pytest-report | |
path: pytest.xml | |
retention-days: 1 | |
if-no-files-found: error | |
- name: Check code style | |
run: | | |
black --check src | |
- name: Check import order | |
run: | | |
isort --check-only src |