Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás González <[email protected]>
  • Loading branch information
tgonzalezorlandoarm committed Nov 13, 2023
1 parent 284bc08 commit 0a8739b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
18 changes: 18 additions & 0 deletions .github/actions/mock_tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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
29 changes: 7 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ 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
Expand All @@ -31,15 +26,5 @@ jobs:
with:
toolchain: 1.66.0
rustflags: ""
- 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
uses: ./.github/actions/mock_tests

0 comments on commit 0a8739b

Please sign in to comment.