Skip to content

Add some GitHub functionality to BL_Python #42

Add some GitHub functionality to BL_Python

Add some GitHub functionality to BL_Python #42

Workflow file for this run

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