Skip to content

Commit 44034bd

Browse files
ci.yml: Add a job to build with the MSRV
This jobs does MSRV build and format checks, but does not run runtime tests. Signed-off-by: Tomás González <[email protected]>
1 parent ef9963b commit 44034bd

File tree

2 files changed

+38
-11
lines changed

2 files changed

+38
-11
lines changed

.github/actions/mock_tests/action.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Build and check formatting and Mock Tests"
2+
description: "Download Parsec Mock, install dependencies and execute all tests"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Set up Python 3.7
8+
uses: actions/setup-python@v1
9+
with:
10+
python-version: 3.7
11+
- name: Download Parsec Mock, install dependencies and execute all tests
12+
run: |
13+
curl -s -N -L https://github.com/parallaxsecond/parsec-mock/archive/refs/tags/0.1.1.tar.gz | tar xz
14+
cd parsec-mock-0.1.1/
15+
python -m pip install --upgrade pip
16+
pip install -r requirements.txt
17+
cd ..
18+
./tests/ci.sh
19+
shell: bash

.github/workflows/ci.yml

+19-11
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@ jobs:
77
name: Build and check formatting
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up Python 3.7
12-
uses: actions/setup-python@v1
10+
- uses: actions/checkout@v3
11+
- name: Install latest Rust
12+
uses: actions-rust-lang/setup-rust-toolchain@v1
1313
with:
14-
python-version: 3.7
14+
toolchain: stable
15+
rustflags: ""
1516
- name: Download Parsec Mock, install dependencies and execute all tests
16-
run: |
17-
curl -s -N -L https://github.com/parallaxsecond/parsec-mock/archive/refs/tags/0.1.1.tar.gz | tar xz
18-
cd parsec-mock-0.1.1/
19-
python -m pip install --upgrade pip
20-
pip install -r requirements.txt
21-
cd ..
22-
./tests/ci.sh
17+
uses: ./.github/actions/mock_tests
18+
19+
build-msrv:
20+
name: MSRV - Build and check formatting
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Install Rust MSRV
25+
uses: actions-rust-lang/setup-rust-toolchain@v1
26+
with:
27+
toolchain: 1.66.0
28+
rustflags: ""
29+
- name: Download Parsec Mock, install dependencies and execute all tests
30+
uses: ./.github/actions/mock_tests

0 commit comments

Comments
 (0)