wip use official iati codelists #27
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: pip | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements_dev.txt | |
- name: Lint - flake8 | |
run: flake8 | |
- name: Lint - black | |
run: black . --check | |
- name: Lint - isort | |
run: isort . --check-only | |
- name: Install some extras | |
run: | | |
cd helpers | |
./get_codelist_mapping.sh | |
./get_codelists.sh | |
echo '{}' > ckan.json | |
touch registry_id_relationships.csv | |
wget -q https://codeforiati.org/imf-exchangerates/imf_exchangerates_A_ENDA_USD.csv -O currency_conversion/exchange_rates.csv | |
cd .. | |
- name: Run tests | |
run: pytest --cov . | |
- name: Coveralls | |
run: coveralls --service=github-actions | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |