Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a MSRV job #118

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/actions/mock_tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Build and check formatting and Mock Tests"
description: "Download Parsec Mock, install dependencies and execute all tests"

runs:
using: "composite"
steps:
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Download Parsec Mock, install dependencies and execute all tests
run: |
curl -s -N -L https://github.com/parallaxsecond/parsec-mock/archive/refs/tags/0.1.1.tar.gz | tar xz
cd parsec-mock-0.1.1/
python -m pip install --upgrade pip
pip install -r requirements.txt
cd ..
./tests/ci.sh
shell: bash
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ jobs:
name: Build and check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
- uses: actions/checkout@v3
- name: Install latest Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
python-version: 3.7
toolchain: stable
rustflags: ""
- name: Download Parsec Mock, install dependencies and execute all tests
run: |
curl -s -N -L https://github.com/parallaxsecond/parsec-mock/archive/refs/tags/0.1.1.tar.gz | tar xz
cd parsec-mock-0.1.1/
python -m pip install --upgrade pip
pip install -r requirements.txt
cd ..
./tests/ci.sh
uses: ./.github/actions/mock_tests

build-msrv:
name: MSRV - Build and check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust MSRV
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.66.0
rustflags: ""
- name: Download Parsec Mock, install dependencies and execute all tests
uses: ./.github/actions/mock_tests
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/target
*patch
Cargo.lock
cobertura.xml
Loading
Loading