Skip to content

Commit 457602d

Browse files
authored
Merge pull request RustPython#1819 from RustPython/coolreader18/only-gh-actions
Remove Travis and Azure CI
2 parents d1dba7f + 831d9f3 commit 457602d

File tree

14 files changed

+99
-368
lines changed

14 files changed

+99
-368
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
args: --release --verbose --all
5858
- uses: actions/setup-python@v1
5959
with:
60-
python-version: 3.6
60+
python-version: 3.8
6161
- name: Install pipenv
6262
run: |
6363
python -V
@@ -103,7 +103,7 @@ jobs:
103103
- uses: actions/checkout@master
104104
- uses: actions/setup-python@v1
105105
with:
106-
python-version: 3.6
106+
python-version: 3.8
107107
- name: install flake8
108108
run: python -m pip install flake8
109109
- name: run lint
@@ -130,7 +130,7 @@ jobs:
130130
tar -xzf geckodriver-v0.24.0-linux32.tar.gz -C geckodriver
131131
- uses: actions/setup-python@v1
132132
with:
133-
python-version: 3.6
133+
python-version: 3.8
134134
- name: Install pipenv
135135
run: |
136136
python -V

.github/workflows/cron-ci.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
on:
2+
schedule:
3+
- cron: '0 0 * * 6'
4+
5+
jobs:
6+
redox:
7+
name: Check compilation on Redox
8+
runs-on: ubuntu-latest
9+
container:
10+
image: redoxos/redoxer:latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: prepare repository for redoxer compilation
14+
run: bash scripts/redox/uncomment-cargo.sh
15+
- name: compile for redox
16+
run: redoxer build --verbose
17+
18+
codecov:
19+
name: Collect code coverage data
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@master
23+
- uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: nightly
26+
override: true
27+
- uses: actions-rs/cargo@v1
28+
with:
29+
command: build
30+
args: --verbose
31+
env:
32+
CARGO_INCREMENTAL: '0'
33+
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
34+
- uses: actions/setup-python@v1
35+
with:
36+
python-version: 3.8
37+
- name: Install pipenv
38+
run: |
39+
python -V
40+
python -m pip install --upgrade pip
41+
python -m pip install pipenv
42+
- run: pipenv install
43+
working-directory: ./tests
44+
- name: run snippets
45+
run: pipenv run pytest -v
46+
working-directory: ./tests
47+
env:
48+
RUSTPYTHON_DEBUG: 'true'
49+
- name: run cpython tests
50+
run: cargo run -- -m test -v
51+
env:
52+
RUSTPYTHONPATH: ${{ github.workspace }}/Lib
53+
- uses: actions-rs/grcov@v0.1
54+
id: coverage
55+
- name: upload to Codecov
56+
uses: codecov/codecov-action@v1
57+
with:
58+
file: ${{ steps.coverage.outputs.report }}

.travis.yml

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)