Skip to content

Merge pull request #255 from earthpulse/D-A-Albrecht-patch-14 #557

Merge pull request #255 from earthpulse/D-A-Albrecht-patch-14

Merge pull request #255 from earthpulse/D-A-Albrecht-patch-14 #557

Workflow file for this run

name: "EOTDL GitHub Actions"
on:
push:
branches:
- main
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Install dependencies
run: |
cd eotdl
poetry install --no-interaction --no-root
- name: lib tests
run: |
cd eotdl
poetry run pytest --cov .
lint:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Install dependencies
run: |
cd eotdl
poetry install --no-interaction --no-root
- name: Lint with Pylint
run: |
cd eotdl
poetry run pylint --fail-under=7 $(find . -type f -name "*.py" -not -path "./.venv/*")
publish:
needs: lint
# only publish on main branch and when the commit is made by earthpulse
if: github.ref == 'refs/heads/main' && github.actor == 'earthpulse'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
# - name: Install Poetry
# uses: snok/install-poetry@v1
# with:
# virtualenvs-create: false
# - name: Build
# run: |
# cd eotdl
# make build
# - name: Publish
# run: |
# cd eotld
# make publish