Skip to content

WIP: Explore the ways to speed up CI #932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,16 @@ jobs:
# Only run one job (Ubuntu + Python 3.9) for draft PRs
exclude:
- os: macOS-latest
python-version: 3.7
isDraft: true
- os: macOS-latest
python-version: 3.8
isDraft: true
- os: windows-latest
python-version: 3.7
isDraft: true
- os: windows-latest
python-version: 3.8
isDraft: true
- os: ubuntu-latest
python-version: 3.7
Expand Down Expand Up @@ -71,13 +79,7 @@ jobs:
with:
activate-environment: pygmt
python-version: ${{ matrix.python-version }}
channels: conda-forge
miniconda-version: "latest"

# Install GMT and other required dependencies from conda-forge
- name: Install dependencies
shell: bash -l {0}
run: conda env update --file environment.yml
environment-file: environment.yml

# Show installed pkg information for postmortem diagnostic
- name: List installed packages
Expand Down
10 changes: 1 addition & 9 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pygmt
channels:
- conda-forge
- defaults
- nodefaults
dependencies:
# Required dependencies
- pip
Expand All @@ -12,18 +12,10 @@ dependencies:
- netCDF4
- packaging
# Development dependencies
- black
- blackdoc
- codecov
- coverage[toml]
- docformatter
- flake8
- ipython
- isort>=5
- jupyter
- make
- matplotlib
- pylint
- pytest-cov
- pytest-mpl
- pytest>=6.0
Expand Down