Skip to content

Commit 12a3615

Browse files
committed
Test on RustPython
1 parent e8bbe79 commit 12a3615

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: RustPython
3+
4+
on:
5+
push:
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
tests:
11+
name: "ubuntu-20.04 / RustPython"
12+
runs-on: "ubuntu-20.04"
13+
continue-on-error: True
14+
env:
15+
USING_COVERAGE: 'rustpython'
16+
CARGO_TERM_COLOR: always
17+
18+
steps:
19+
- name: Checkout 🛎️
20+
uses: "actions/checkout@v2"
21+
22+
- name: Setup RustPython 🦀 🐍
23+
run: |
24+
git clone https://github.com/RustPython/RustPython
25+
cargo install --path ./RustPython
26+
27+
- name: Install dependencies 🔧
28+
run: |
29+
python -VV
30+
python -m site
31+
python -m pip install --upgrade pip setuptools wheel
32+
python -m pip install --upgrade tox virtualenv
33+
python -m pip install --upgrade coverage_pyver_pragma
34+
35+
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
36+
run: python -m tox -e rustpython
37+
38+
- name: "Upload Coverage 🚀"
39+
uses: actions/upload-artifact@v2
40+
if: ${{ always() }}
41+
with:
42+
name: "coverage-${{ matrix.config.python-version }}"
43+
path: .coverage

repo_helper.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ python_versions:
2020
- 3.9
2121
- 3.10-dev
2222
- pypy3
23+
- rustpython
2324

2425
classifiers:
2526
- 'Development Status :: 5 - Production/Stable'

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
# * pytest
1414

1515
[tox]
16-
envlist = py36, py37, py38, py39, py310-dev, pypy3, mypy, build
16+
envlist = py36, py37, py38, py39, py310-dev, pypy3, pyrustpython, mypy, build
1717
skip_missing_interpreters = True
1818
requires =
1919
pip>=20.3.3
2020
tox-envlist>=0.1.0
2121
isolated_build = True
2222

2323
[envlists]
24-
test = py36, py37, py38, py39, py310-dev, pypy3
24+
test = py36, py37, py38, py39, py310-dev, pypy3, pyrustpython
2525
qa = mypy, lint
2626
cov = py36, coverage
2727

0 commit comments

Comments
 (0)