changes to allow for custom favicon #326
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: 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 |