-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (39 loc) · 1.47 KB
/
pysat_rc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This workflow will install Python dependencies (including the latest RC
# for pysat packages) and run tests for supported operating systems.
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/
# using-python-with-github-actions
name: Test with pysat ecosystem RCs
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10"]
rc-package: ["pysat", "pysatNASA"]
name: ${{ matrix.os }} with ${{ matrix.rc-package }} RC
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install RC package
run: pip install --no-deps --pre -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ ${{ matrix.rc-package }}
- name: Install standard dependencies
run: |
pip install -r test_requirements.txt
pip install -r requirements.txt
- name: Set up pysat
run: |
mkdir pysatData
python -c "import pysat; pysat.params['data_dirs'] = 'pysatData'"
- name: Run unit and integration tests
run: pytest --cov=pysatModels/
- name: Publish results to coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --rcfile=setup.cfg --service=github