Skip to content

Commit

Permalink
Test on RustPython
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 8, 2021
1 parent 602c915 commit d2a40a9
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/rustpython_ci_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: RustPython

on:
push:

jobs:
tests:
name: "ubuntu-20.04 / RustPython"
runs-on: "ubuntu-20.04"
env:
USING_COVERAGE: 'rustpython'
CARGO_TERM_COLOR: always

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Setup RustPython 🦀 🐍
run: |
git clone https://github.com/RustPython/RustPython
cargo install --path ./RustPython
rm -rf ./RustPython
- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv
python -m pip install --upgrade coverage_pyver_pragma
- name: "Run Tests for RustPython"
run: python -m tox -e rustpython

- name: "Upload Coverage 🚀"
uses: actions/upload-artifact@v2
if: always()
with:
name: "coverage-rustpython"
path: .coverage


- name: "Upload tempdir on failure"
uses: actions/upload-artifact@v2
if: failure()
with:
name: "pytest-tempdir"
path: /tmp/pytest-of-runner/pytest-0
1 change: 1 addition & 0 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ python_versions:
- '3.8'
- '3.9'
- 'pypy3'
- rustpython

manifest_additional:
- "include repo_helper/testing/repo_helper_example.yml"
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
# * pytest

[tox]
envlist = py36, py37, py38, py39, pypy3, mypy, build
envlist = py36, py37, py38, py39, pypy3, rustpython, mypy, build
skip_missing_interpreters = True
requires =
pip>=20.3.3
tox-envlist>=0.1.0
isolated_build = True

[envlists]
test = py36, py37, py38, py39, pypy3
test = py36, py37, py38, py39, pypy3, rustpython
qa = mypy, lint
cov = py36, coverage

Expand Down

0 comments on commit d2a40a9

Please sign in to comment.