Skip to content

Commit

Permalink
Merge pull request #579 from knaaptime/infra
Browse files Browse the repository at this point in the history
overhaul infrastructure
  • Loading branch information
jGaboardi authored Sep 30, 2023
2 parents 3576691 + e885c09 commit 479ce33
Show file tree
Hide file tree
Showing 26 changed files with 200 additions and 4,140 deletions.
19 changes: 19 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- dependabot
categories:
- title: Bug Fixes
labels:
- bug
- title: Enhancements
labels:
- enhancement
- title: Maintenance
labels:
- maintenance
- title: Other Changes
labels:
- "*"
118 changes: 60 additions & 58 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,62 @@
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: '59 21 * * *'

jobs:
unittests:
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
env:
FETCH_EXAMPLES: python -c 'import libpysal; libpysal.examples.fetch_all()'
RUN_TEST: pytest -v -n 1 libpysal --cov libpysal --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing
#timeout-minutes: 25
defaults:
name: Tests

on:
push:
branches: [main]
pull_request:
branches:
- "*"
schedule:
- cron: "0 0 * * 1,4"

jobs:
Test:
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
environment-file:
- ci/38-minimal.yaml
- ci/39.yaml
- ci/310.yaml
- ci/311.yaml
- ci/311-dev.yaml
- ci/311-no-optional.yaml
include:
- environment-file: ci/310.yaml
os: macos-latest
- environment-file: ci/310.yaml
os: windows-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: ['ubuntu-latest']
environment-file: [
ci/38-minimal.yaml,
ci/39.yaml,
ci/310.yaml,
ci/311.yaml,
ci/311-no-optional.yaml,
ci/311-dev.yaml
]
include:
- environment-file: ci/311.yaml
os: macos-latest
- environment-file: ci/311.yaml
os: windows-latest
fail-fast: false

steps:
- name: checkout repo
uses: actions/checkout@v4

- name: setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'

- name: run tests
run: |
${{ env.FETCH_EXAMPLES }}
${{ env.RUN_TEST }}
- name: codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
name: libpysal-codecov

steps:
- uses: actions/checkout@v4

- name: setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: "latest"

- name: Install libpysal
run: pip install .; python -c 'import libpysal; libpysal.examples.fetch_all()'

- name: Test libpysal
run: |
pytest -v --color yes --cov libpysal --cov-append --cov-report term-missing --cov-report xml .
- uses: codecov/codecov-action@v3

- name: Generate and publish the report
if: |
failure()
&& steps.status.outcome == 'failure'
&& github.event_name == 'schedule'
&& github.repository_owner == 'pysal'
uses: xarray-contrib/issue-from-pytest-log@v1
with:
log-path: pytest-log.jsonl
2 changes: 0 additions & 2 deletions Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

47 changes: 0 additions & 47 deletions Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions THANKS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ Pedro Amaral
Luc Anselin
Jotham Apaloo
Daniel Arribas-Bel
Martin Fleischmann
David C. Folch
James Gaboardi
Forest Gregg
Myunghwa Hwang
Wei Kang
Eli Knaap
Marynia Kolak
Julia Koschinsky
Jason Laura
Expand Down
22 changes: 0 additions & 22 deletions authors.txt

This file was deleted.

13 changes: 4 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import sys, os
import sphinx_bootstrap_theme


sys.path.insert(0, os.path.abspath("../"))

import libpysal


Expand Down Expand Up @@ -210,8 +205,8 @@
(
master_doc,
"%s.tex" % project,
u"%s Documentation" % project,
u"pysal developers",
"%s Documentation" % project,
"pysal developers",
"manual",
),
]
Expand All @@ -221,7 +216,7 @@

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(master_doc, project, u"%s Documentation" % project, [author], 1)]
man_pages = [(master_doc, project, "%s Documentation" % project, [author], 1)]


# -- Options for Texinfo output -------------------------------------------
Expand All @@ -233,7 +228,7 @@
(
master_doc,
project,
u"%s Documentation" % project,
"%s Documentation" % project,
author,
project,
"One line description of project.",
Expand Down
Loading

0 comments on commit 479ce33

Please sign in to comment.