update pyproject.toml #20
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: HDX/CKAN types checker | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ dev ] | |
jobs: | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Building CKAN docker image | |
run: docker-compose build ckan | |
- name: Spinning up docker-compose stack | |
run: | | |
docker-compose up -d | |
sleep 10 | |
- name: Installing HDX/CKAN PY3 dev-requirements | |
run: docker-compose exec -T ckan pip install -r /srv/ckan/dev-requirements.txt | |
- name: Install Node.js and npm | |
run: | | |
docker-compose exec -T ckan bash -c " | |
curl -sL https://deb.nodesource.com/setup_22.x | bash - | |
apt-get install -y nodejs | |
npm install -g npm | |
npm install -g pyright | |
" | |
- name: Check types for ckan | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckan | |
- name: Check types for ckanext-hdx_dataviz | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_dataviz | |
- name: Check types for ckanext-hdx_hxl_preview | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_hxl_preview | |
- name: Check types for ckanext-hdx_office_preview | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_office_preview | |
- name: Check types for ckanext-hdx_org_group | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_org_group | |
- name: Check types for ckanext-hdx_package | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_package | |
- name: Check types for ckanext-hdx_pages | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_pages | |
- name: Check types for ckanext-hdx_search | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_search | |
- name: Check types for ckanext-hdx_service_checker | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_service_checker | |
- name: Check types for ckanext-hdx_theme | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_theme | |
- name: Check types for ckanext-hdx_user_extra | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_user_extra | |
- name: Check types for ckanext-hdx_users | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_users | |
- name: Check types for ckanext-sitemap | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-sitemap | |
- name: Check types for ckanext-ytp-request | |
run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-ytp-request |