mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
Set up Github Actions to handle CI
* Tweak env names for easier templating * Add condarc file to force conda-forge * Run xonsh as module to avoid windows PATH issues
This commit is contained in:
parent
6e6de74000
commit
fc2361b875
9 changed files with 96 additions and 4 deletions
15
.github/workflows/black.yml
vendored
Normal file
15
.github/workflows/black.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
name: Black
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Black Check
|
||||
uses: "lgeiger/black-action@master"
|
||||
with:
|
||||
args: "--check --exclude=xonsh/ply/ xonsh/ xontrib/"
|
24
.github/workflows/elm.yml
vendored
Normal file
24
.github/workflows/elm.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Check Elm
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
name: Python 3.7 Elm Check Ubuntu
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup conda
|
||||
uses: goanpeca/setup-miniconda@v1
|
||||
with:
|
||||
activate-environment: elm-xonsh-test
|
||||
environment-file: ci/environment-elm.yml
|
||||
update-conda: true
|
||||
python-version: 3.7
|
||||
condarc-file: ci/condarc.yml
|
||||
- shell: bash -l {0}
|
||||
run: |
|
||||
python -m pip install . --no-deps
|
||||
pushd xonsh/webconfig
|
||||
python -m xonsh elm-compile.xsh
|
||||
popd
|
27
.github/workflows/pytest.yml
vendored
Normal file
27
.github/workflows/pytest.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: pytest
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
python-version: [3.6, 3.7, 3.8]
|
||||
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup conda
|
||||
uses: goanpeca/setup-miniconda@v1
|
||||
with:
|
||||
activate-environment: ${{matrix.python-version}}-xonsh-test
|
||||
environment-file: ci/environment-${{matrix.python-version}}.yml
|
||||
update-conda: true
|
||||
python-version: ${{ matrix.python-version }}
|
||||
condarc-file: ci/condarc.yml
|
||||
- shell: bash -l {0}
|
||||
run: |
|
||||
python -m pip install . --no-deps
|
||||
python -m xonsh run-tests.xsh --timeout=10
|
||||
|
3
ci/condarc.yml
Normal file
3
ci/condarc.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
channels:
|
||||
- conda-forge
|
||||
- main
|
|
@ -1,4 +1,4 @@
|
|||
name: py35-xonsh-test
|
||||
name: 3.5-xonsh-test
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: py36-xonsh-test
|
||||
name: 3.6-xonsh-test
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: py37-xonsh-test
|
||||
name: 3.7-xonsh-test
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: py38-xonsh-test
|
||||
name: 3.8-xonsh-test
|
||||
channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
|
|
23
news/github_actions.rst
Normal file
23
news/github_actions.rst
Normal file
|
@ -0,0 +1,23 @@
|
|||
**Added:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Changed:**
|
||||
|
||||
* Moved most CI to github actions
|
||||
|
||||
**Deprecated:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Removed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Security:**
|
||||
|
||||
* <news item>
|
Loading…
Add table
Reference in a new issue