Skip to content

Merge pull request #37 from codeforIATI/end-to-end-traceability-tests #2

Merge pull request #37 from codeforIATI/end-to-end-traceability-tests

Merge pull request #37 from codeforIATI/end-to-end-traceability-tests #2

Workflow file for this run

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.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- uses: actions/cache@v2
name: Cache dependencies
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Lint
run: flake8
- 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 }}