Commit graph

71 commits

Author SHA1 Message Date
dependabot[bot]
538c26f0e3
chore(deps): bump actions/setup-python from 3 to 4 (#4837)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 10:13:26 +05:30
dependabot[bot]
0ddc05e82e
chore(deps): bump actions/setup-python from 2 to 3 (#4834)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:22:20 +05:30
dependabot[bot]
daa5d5300b
chore(deps): bump actions/checkout from 2 to 3 (#4833)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:14:34 +05:30
dependabot[bot]
0c9c593d1b
chore(deps): bump codecov/codecov-action from 2 to 3 (#4832)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:13:32 +05:30
Naveen
40383d1f09
chore: Included githubactions in the dependabot config (#4831)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-08 10:50:42 +05:30
Naveen
8088a3e62e
chore: Set permissions for GitHub actions (#4830)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-06 10:41:33 +05:30
Noorhteen Raja NJ
e7ab9a4eb8
fix: checking news item pattern (#4814) 2022-05-23 10:19:14 -04:00
Noorhteen Raja NJ
ed4421ddf4
pr5-pep621 (#4803) 2022-05-10 11:39:43 -04:00
Noorhteen Raja NJ
73a880f76a
chore: drop py3.7 (#4770) 2022-04-26 09:00:31 -04:00
Noortheen Raja
bff0794b68 ci: news-item checker cleanup 2022-04-12 14:19:15 +05:30
Noortheen Raja
ea51a8a37f fix: pr commentor 2022-04-10 13:46:56 +05:30
Noorhteen Raja NJ
f4275b7992
chore: pass env variables (#4741) 2022-03-28 14:24:04 -04:00
Noorhteen Raja NJ
d004784621
Comment pr (#4738)
* feat: make check-news item a warning

* chore: use python script to comment on PR without news items
2022-03-27 17:55:42 +05:30
Noortheen Raja
fcf6f37d5b chore: add back codecov reports 2022-03-25 10:41:42 -04:00
Noortheen Raja
a13a3af21f chore: try to comment news item missing
chore: make news item check a comment
2022-03-22 19:13:11 +05:30
Noortheen Raja
0acb256740 fix: mypy errors in ci
chore: upgrade mypy
2022-03-22 19:13:11 +05:30
Noortheen Raja
fa9c33b55b chore: cancel previous still running jobs for PRs 2022-03-22 19:13:11 +05:30
Noortheen Raja
d0f127718f chore: add tmate for manual ssh into runner 2022-03-22 19:13:11 +05:30
Noortheen Raja
ac1592c458 chore: use wheel to speedup binary installs 2022-03-22 19:13:11 +05:30
Noortheen Raja
a7ef90cce6 fix: upload coverage for latest py version
fix: checking qa without amalgamation

fix: correct if expression

chore: update condition

chore: disable fail-fast

chore: update name
2022-03-22 19:13:11 +05:30
Noortheen Raja
e6043ca5aa chore: use matrix for CI
github has added
https://github.blog/2022-03-16-save-time-partial-re-runs-github-actions/

we can drop custom file generation

refactor: run with bash

chore: use setup-python

conda is also available in the github action virtualenv
2022-03-22 19:13:11 +05:30
Gil Forsyth
f0d77b28e8
chore: call token personal_token
Just in case this action thinks it knows better
2022-03-15 10:50:32 -04:00
Gil Forsyth
688d91f377
chore: add repo name to token generation for docs push 2022-03-15 10:33:44 -04:00
Gil Forsyth
14fe0355d0
fix(maybe): use generated token to push docs (#4691)
Got the token to generate correctly, but now it's complaining about
scoping -- might be that it needs to be generated for xonsh/xonsh to
push to xonsh/xonsh-docs
2022-03-04 08:06:25 +05:30
Noorhteen Raja NJ
af8570a21a Update issue templates 2022-03-01 08:53:49 -05:00
Noorhteen Raja NJ
269a6d48e7
chore: point to discussions in case of Q&A (#4681) 2022-02-28 16:33:46 +05:30
dev2718
0ba5bec86f
Feat: support for match statement for python >= 3.10 (#4672)
* feat: initial match statement support

* refactor assignment exprs for <3.8 compatibility; sort imports

* remove match extensions

* bump qa-workflow python version, minor alterations for qa-pipeline

* add mypy exception

* update mypy version

* Bump workflow main python version to 3.10

* remove outdated note

Co-authored-by: Alexander Firbas <alexander.firbas@gmail.com>
2022-02-25 17:00:00 +05:30
Gil Forsyth
278bd87d7c
chore: fix generated token for docs push (#4658) 2022-01-26 07:52:47 +05:30
Noorhteen Raja NJ
360933fb69
build docs in PR (#4645) 2022-01-18 12:37:14 -05:00
Noorhteen Raja NJ
9fbecfc155
feat: use github actions to deploy docs (#4641)
* feat: use github actions to deploy docs

fixes #4473

* fix: install xonsh

* fix: doc action

* chore: support *.md for documentation

* fix: remove hardcoded docs link

it affects local testing

* refactor: move sphinx extensions to its own package

* fix: remove deprecated get_theme_dir

As of Sphinx 1.2, this is passed to Sphinx via a ``setup.py`` entry
point,
and no longer needs to be included in your documentation's
``conf.py``.

* feat: jinja2 render without affecting incremental build

* style:

* feat: auto generate API doc

no need to create a file for each module

* chore: watch top-level and nested files

* refactor: update lib api-docs as well

* fix: import errors when doc generated

for some modules

* fix: relative path

* feat: add release handling

* Update .github/workflows/docs.yml

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* refactor: use github-app-token

* chore: deploy docs only when merged

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2022-01-18 11:38:27 -05:00
Noorhteen Raja NJ
0ea9dd8811
fix: xonfig web is not upto-date (#4606)
* fix: xonfig web is not upto-date

it should load data from backend

* refactor: update elm-compile module

* feat: update `xonfig web`

* todo:

* style:

* tmp

* feat: implements colors page

* feat: implement prompts page

* feat: implement xontribs page

* refactor: remove elm from project

* fix: qa errors

* docs:

* test: add test for xonfig.web

* fix: lru-cache call

* feat: add env variable for sys level config dir

* refactor: add method to handle post

* feat: implement updating prompts

* feat: implement xontribs update page

* style:

* fix: tests failure

* feat: add variables page

* feat: add abbrevs,aliases pages

* feat: run xonfig web in main process

this way we can update the current session

* style: optimize imports

* docs:

* refactor: write .xonshrc as the old code

* refactor: split file write functions
2022-01-18 11:11:16 -05:00
Noorhteen Raja NJ
adafa20b88
adopt NEP-0029 (#4568)
* chore: adopt NEP-0029 for py version deprecation policy

fixes #4560

* chore: drop py3.6 from CI

* docs: add news item

* fix: failing qa because latest version to flake8-bugbear

see https://github.com/PyCQA/flake8-bugbear/issues/208

* chore: require >=py3.7
2021-11-29 12:48:48 -05:00
Noorhteen Raja NJ
5df00b863a
chore: use conda to install py310 (#4519) 2021-11-17 13:40:19 -05:00
Noorhteen Raja NJ
4b0918f9e3
fix: failing ci checks with black and mypy (#4517)
pip21.3 has changed the behaviour of build - https://pip.pypa.io/en/stable/news/#v21-3 to use in-tree-build by default. this creates amalgamated files.

this will install as editable dependency during qa checks

for some reason mypy exclude for __amalgam__.py is not working
2021-10-14 17:01:44 -04:00
Noorhteen Raja NJ
9d9c071927
chore: combine coverage reports from all platforms supported (#4449)
also upgrade codecov-action version
2021-09-02 18:12:36 +03:00
Noorhteen Raja NJ
3ce8c9b337
add py310 (#4270)
* chore: adding py310 to ci

though this will require code/parser changes, this is to prepare for
upcoming adoption

* fix: set python version as string

* fix: reference to master -> main

* fix: coverage is not reported in master

- disable amalgamation
	1. during coverage report tests
	2. qa tools like mypy may follow imports
- use python 3.9 for coverage and qa report. since it will have more
coverage and better typing support

* chore: use py3.10 with setup-py action

* chore: add news-item check job

* fix: py3.10 error while starting

the match statement is not supported.
while the syntax support is only upto py3.8

* fix: news-item checker

* chore: enable fail report for py310 tests

* test: add test for ptk_shell
2021-06-07 13:40:40 -04:00
Andy Kipp
5a792a6eec
Please click the 👍 reaction (#4210) 2021-03-31 12:16:23 -04:00
Gil Forsyth
f1d0af7b75
Change master -> main in github workflows (#4185) 2021-03-16 10:21:19 -04:00
Noorhteen Raja NJ
c2d5e60799
Py39 support (#4101)
* fix: handle ast.Index and ast.ExtSlice change while Parsing

related to #4100, #4099, #4068, #4038, #4028, #4005,

* fix: py39 raises when lineno & col not given

TypeError: required field "col_offset" missing from keyword

* fix: tuple inside scbscriptor support for py39

* chore: enable py39 ci checks

they were silently failing before

* test: a backlog test for attributes inside subscriptors

this would require debugging deep into the ply parser methods.

* docs: add news item

* test: skip test_rc_with_modified_path on windows

* Update tests/test_parser.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* test: mark failing tests for py39 parser

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-02-17 12:31:33 -05:00
Noorhteen Raja NJ
f4a7f1f22f
chore: bring back codcoverage report (#3998)
* chore: bring back codcoverage report

* chore: the run-tests.xsh script can't print to stdout

* test: combine coverage on multiple runs

* test: sort coverage report by coverage percent

* chore (ci): split test step

* docs: add news item for code-coverage

* chore: try coverage parallel

but this will not work with --append mode.
2020-12-18 09:04:42 -05:00
Noorhteen Raja NJ
5ea2ae4f8f
refactor: rewrite xontribs/jedi.xsh -> xontribs/jedi.py to take advan… (#3965)
* refactor: rewrite xontribs/jedi.xsh -> xontribs/jedi.py to take advantage of python tooling

* chore: update elm ci workflow

* test: update test for jedi xontrib
2020-11-23 16:21:43 -05:00
Anthony Scopatz
03fd886b02
update setup-minniconda to v2 (#3984) 2020-11-18 17:46:46 -05:00
Noorhteen Raja NJ
ee46b17255
chore: add pip cache for github actions (#3973)
this will further speedup the workflow.
- also the macos and windows should now have proper cache with conda
- use jinja to template workflows that looks the same
2020-11-17 14:48:22 -05:00
Carmen Bianca Bakker
42d35b7ed8
Remove magic number; put it in a const
Signed-off-by: Carmen Bianca Bakker <carmen@carmenbianca.eu>
2020-10-25 17:27:40 +01:00
Carmen Bianca Bakker
e4df6c5d1f
Add name to install/test step in CI
The 3.9 tests now *always* succeed, which makes them difficult to spot
in the web interface. By renaming the step, it's easier to find the test
results.

Signed-off-by: Carmen Bianca Bakker <carmen@carmenbianca.eu>
2020-10-25 17:16:29 +01:00
Carmen Bianca Bakker
2a8c4ed416
Add 3.9 to genbuilds.xsh
Also allow 3.9 to fail.

Signed-off-by: Carmen Bianca Bakker <carmen@carmenbianca.eu>
2020-10-25 17:07:53 +01:00
Carmen Bianca Bakker
1b9fd603ae
Add Python 3.9 to GitHub workflows
Signed-off-by: Carmen Bianca Bakker <carmen@carmenbianca.eu>
2020-10-24 18:00:57 +02:00
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
Anthony Scopatz
526dd354ff
goanpeca -> conda-incubator (#3857)
* goanpeca -> conda-incubator

* elm incubator fix
2020-10-08 14:54:03 -04:00
David Strobach
80a9ba8b58 Stick to Black v19.10b0 for now 2020-08-28 16:20:22 +02:00