Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
Plio
Commits
c617205c
Commit
c617205c
authored
3 years ago
by
jlaura
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Create continuous_integration.yml
parent
3372c096
No related branches found
Branches containing commit
Tags
1.2.3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/continuous_integration.yml
+51
-0
51 additions, 0 deletions
.github/workflows/continuous_integration.yml
with
51 additions
and
0 deletions
.github/workflows/continuous_integration.yml
0 → 100644
+
51
−
0
View file @
c617205c
name
:
Pull-Request-CI
on
:
pull_request
:
branches
:
-
master
push
:
branches
:
-
master
jobs
:
Build-and-Test
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
]
python-version
:
[
"
3.6"
,
"
3.7"
,
"
3.8"
,
"
3.9"
]
defaults
:
run
:
shell
:
bash -l {0}
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
-
name
:
Setup ENV
uses
:
conda-incubator/setup-miniconda@v2
with
:
miniconda-version
:
"
latest"
mamba-version
:
"
*"
use-mamba
:
true
channels
:
conda-forge, defaults
channel-priority
:
strict
activate-environment
:
autocnet
environment-file
:
environment.yml
python-version
:
${{ matrix.python-version }}
-
name
:
Check build environment
run
:
|
conda list
-
name
:
Install Python Package
run
:
|
python setup.py install
-
name
:
Test Python Package
run
:
|
pytest --cov-report=xml
-
name
:
Upload Coverage
uses
:
codecov/codecov-action@v1
with
:
token
:
${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error
:
true
verbose
:
true
if
:
matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment