Skip to content

Commit

Permalink
Merge pull request #135 from GeoscienceAustralia/setup-github-actions
Browse files Browse the repository at this point in the history
Setup GitHub actions
  • Loading branch information
harry093 authored Jun 22, 2021
2 parents 582b1c1 + c2a9f4a commit 36b1c7f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 157 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: GeodePy CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov coveralls
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest --cov-report term-missing:skip-covered --cov=geodepy geodepy/tests/
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package
name: GeodePy PyPI

on:
release:
types: [published]
types: [released]

jobs:
deploy:
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/python-app.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/python-package.yml

This file was deleted.

78 changes: 0 additions & 78 deletions geodepy/tests/test_height.py

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
numpy

0 comments on commit 36b1c7f

Please sign in to comment.