Skip to content

update header component to use class for strong component #340

update header component to use class for strong component

update header component to use class for strong component #340

name: Automated checks
on:
pull_request:
branches:
- main
jobs:
format:
name: 'Check code formatting'
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: pkg_gov_uk_dashboards
environment-file: environment.yml
- name: Run formatter
run: black --check ./
lint:
name: 'Check code for linting errors'
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: pkg_gov_uk_dashboards
environment-file: environment.yml
- name: Run linter
run: pylint $(pwd)/gov_uk_dashboards
test:
name: 'Run tests'
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: data_dashboards
environment-file: environment.yml
- name: Execute tests
run: python -u -m pytest --headless tests
setup_check:
name: 'Check setup.py is formatted correctly'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: python setup.py check