Debian Codegraph @

.github/workflows/ci_workflows.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 push:
5 pull_request:
6 schedule:
7 # Weekly Wednesday 6AM build
8 # * is a special character in YAML so you have to quote this string
9 - cron: '0 6 * * 3'
10
11 env:
12 PYSYN_CDBS: "https://ssb.stsci.edu/trds"
13
14 jobs:
15 initial_tests:
16 runs-on: ubuntu-16.04
17 steps:
18 - name: Checkout code
19 uses: actions/checkout@v2
20 - name: Fetch tags
21 run: git fetch --prune --unshallow --tags
22 - name: Set up Python
23 uses: actions/setup-python@v2
24 with:
25 python-version: '3.7'
26 - name: Install and build
27 run: |
28 python -m pip install --upgrade pip wheel setuptools
29 python -m pip install numpy astropy pytest-remotedata pytest-astropy-header
30 python setup.py install
31 - name: Test without remote data
32 run: pytest pysynphot
33
34 coverage_dev_tests:
35 runs-on: ubuntu-latest
36 steps:
37 - name: Checkout code
38 uses: actions/checkout@v2
39 - name: Fetch tags
40 run: git fetch --prune --unshallow --tags
41 - name: Set up Python
42 uses: actions/setup-python@v2
43 with:
44 python-version: '3.8'
45 - name: Install and build
46 run: |
47 python -m pip install --upgrade pip wheel setuptools
48 python -m pip install numpy pytest-remotedata pytest-astropy-header pytest-cov codecov requests
49 python -m pip install git+https://github.com/astropy/astropy.git@main#egg=astropy
50 python setup.py install
51 # NOTE: If TRDS cannot take the hit, disable --remote-data
52 - name: Test with coverage, dev astropy, and remote data
53 run: pytest pysynphot --cov=./ --cov-report=xml --remote-data
54 - name: Coverage report
55 uses: codecov/[email protected]
56 with:
57 token: ${{ secrets.CODECOV_TOKEN }}