Skip to content

Commit

Permalink
Merge pull request #12 from csdms/mdpiper/setup-actions
Browse files Browse the repository at this point in the history
Set up GitHub Actions for continuous integration
  • Loading branch information
mdpiper authored Dec 13, 2023
2 parents a1bfc75 + a4d393f commit 201c21c
Show file tree
Hide file tree
Showing 20 changed files with 180 additions and 471 deletions.
70 changes: 0 additions & 70 deletions .ci/appveyor/anaconda_upload.py

This file was deleted.

103 changes: 0 additions & 103 deletions .ci/appveyor/install.ps1

This file was deleted.

36 changes: 0 additions & 36 deletions .ci/appveyor/run_with_env.cmd

This file was deleted.

10 changes: 0 additions & 10 deletions .ci/travis/deploy_to_anaconda.sh

This file was deleted.

22 changes: 0 additions & 22 deletions .ci/travis/install_python.sh

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Format

on: [push, pull_request]

jobs:

format:

if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: psf/black@stable
with:
args: ". --check"
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:

lint:

if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4

- name: Lint
run: |
pip install flake8
flake8 .
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on: [push, pull_request]

jobs:
build-and-test:

if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository

runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash -l {0}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Miniforge3
miniforge-version: latest
auto-update-conda: true

- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Install package
run: |
pip install -e .
- name: Test
run: |
pytest -vvv
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 201c21c

Please sign in to comment.