Skip to content

Commit

Permalink
Travis -> GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjames committed Nov 4, 2020
1 parent a1e3346 commit 01b19cf
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 35 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.5
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -r requirements_dev.txt
- run: flake8
34 changes: 34 additions & 0 deletions .github/workflows/test-360.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test360
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.5']
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -r requirements_dev.txt
- run: pip install -r requirements_iati.txt
- run: DJANGO_SETTINGS_MODULE=cove_360.settings py.test -n 2 cove_360 --cov-append --cov --cov-report=
- run: DJANGO_SETTINGS_MODULE=cove_360.settings python manage.py migrate
- run: DJANGO_SETTINGS_MODULE=cove_360.settings python manage.py compilemessages
- run: "DJANGO_SETTINGS_MODULE=cove_360.settings DEBUG=false ALLOWED_HOSTS=localhost python manage.py runserver & (sleep 10s; java -jar dist/vnu.jar 'http://localhost:8000/' 'http://localhost:8000/?source_url=https://github.com/OpenDataServices/cove/raw/master/cove_360/fixtures/fundingproviders_grants_2_grants.csv
' 'http://localhost:8000/?source_url=https://github.com/OpenDataServices/cove/raw/master/cove_360/fixtures/badfile_all_validation_errors.xlsx
' 'http://localhost:8000/?source_url=https://github.com/OpenDataServices/cove/raw/master/cove_360/fixtures/badfile_all_validation_errors.json
' 'http://localhost:8000/common_errors/' 'http://localhost:8000/additional_checks/')"
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls
28 changes: 28 additions & 0 deletions .github/workflows/test-iati.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: TestIATI
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.5']
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -r requirements_dev.txt
- run: pip install -r requirements_iati.txt
- run: DJANGO_SETTINGS_MODULE=cove_iati.settings py.test -n 2 cove_iati --cov-append --cov
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

0 comments on commit 01b19cf

Please sign in to comment.