-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1925 from bsipocz/ci_switch_to_actions
Switch CI to actions
- Loading branch information
Showing
17 changed files
with
248 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
# run every Monday at 5am UTC | ||
- cron: '0 5 * * 1' | ||
|
||
env: | ||
TOXARGS: '-v' | ||
|
||
jobs: | ||
tests: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
|
||
- name: Code style checks | ||
os: ubuntu-latest | ||
python: 3.x | ||
toxenv: codestyle | ||
|
||
- name: docs build | ||
os: ubuntu-latest | ||
python: 3.8 | ||
toxenv: build_docs | ||
|
||
- name: oldest dependencies | ||
os: ubuntu-latest | ||
python: 3.6 | ||
toxenv: py36-test-oldestdeps | ||
|
||
- name: astropy dev with all dependencies with coverage | ||
os: ubuntu-latest | ||
python: 3.9 | ||
toxenv: py39-test-alldeps-devastropy-cov | ||
|
||
- name: Python 3.7 with all optional dependencies (MacOS X) | ||
os: macos-latest | ||
python: 3.7 | ||
toxenv: py37-test-alldeps | ||
|
||
- name: Python 3.8 with mandatory dependencies (Windows) | ||
os: windows-latest | ||
python: 3.8 | ||
toxenv: py38-test | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Python dependencies | ||
run: python -m pip install --upgrade tox codecov | ||
- name: Run tests | ||
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} | ||
- name: Upload coverage to codecov | ||
if: ${{ contains(matrix.toxenv,'-cov') }} | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.xml | ||
|
||
|
||
egg_info: | ||
name: egg_info with Python 3.7 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Run egg_info | ||
run: python setup.py egg_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ distribute-*.tar.gz | |
.*.sw[op] | ||
*~ | ||
.svn | ||
.tmp | ||
|
||
# Mac OSX | ||
.DS_Store | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.