xonsh/.github/workflows/elm.yml
Noorhteen Raja NJ fd597e6971
chore (ci): improve ci workflows and deps management (#3873)
* chore (ci): improve elm job speed by caching

* chore (ci): update ci generator script to be run from any dir

* chore: update pre-commit to use local black binary

* chore: mypy config skip amalgam generated modules

* chore: run-tests.xsh parameterisation

use argparser to make this file a cli

* feat: use requirements.txt during CI

* feat: run black/flake8/mypy during ci from pip-env

* chore: mypy version 0.790 fix

since the loose pinning on mypy version causes new PRs to fail

* refactor: update github actions template

remove poetry/environment.yml files
2020-10-19 11:52:37 -04:00

36 lines
876 B
YAML

name: Check Elm
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Python 3.7 Elm Check Ubuntu
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: elm-env-${{ hashFiles('ci/environment-elm.yml') }}
restore-keys: |
elm-env-
- name: Setup conda
uses: conda-incubator/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