-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #579 from knaaptime/infra
overhaul infrastructure
- Loading branch information
Showing
26 changed files
with
200 additions
and
4,140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.