Skip to content

Commit

Permalink
Reset to baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Mar 7, 2024
1 parent 13273af commit 1c55fdb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable

- name: Install dependencies
run: |
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
. ./activate && \
pip install --upgrade pip
'
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin:v1.5.0 build --release --strip --manylinux 2014
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin:v1.1.0 build --release --strip --manylinux 2014
# Refresh in case any ownerships changed.
mv target target.docker && cp -r target.docker target
# Ensure an empty .cargo-lock file exists.
Expand Down Expand Up @@ -346,7 +346,7 @@ jobs:
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable
override: true
components: rustfmt, clippy
- name: fmt
Expand All @@ -358,7 +358,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable
components: clippy
override: true
- name: clippy
Expand All @@ -378,7 +378,7 @@ jobs:
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable
components: rustfmt, clippy
- name: cargo test
run: cargo test
Expand All @@ -389,10 +389,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable
- name: Run for coverage
run: |
set -e
sudo apt-get update
sudo apt-get install lcov -y
rustup component add llvm-tools-preview
Expand All @@ -405,15 +404,11 @@ jobs:
source venv/bin/activate
git clone https://github.com/Chia-Network/clvm_tools.git --branch=main --single-branch
pip install ./clvm_tools
pip install maturin==1.3.0 pytest
pip install maturin pytest
maturin develop --release
echo 'PYTEST'
(cd resources/tests/cmdline/tests && pytest)
echo 'PYTEST COMPLETE'
grcov . --binary-path target -s . --branch --ignore-not-existing --ignore='*/.cargo/*' --ignore='*/tests/*' -o rust_cov.info
echo 'GRCOV RAN'
python -c 'with open("rust_cov.info") as f: lines = [l for l in f if not (l.startswith("DA:") and int(l.split(",")[1].strip()) >= 2**63)]; open("lcov.info", "w").writelines(lines)'
echo 'COVERAGE STEP DONE'
- name: Upload to Coveralls
uses: coverallsapp/github-action@v2
if: always()
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/extensive-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
- name: Set up rusts
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable
components: rustfmt, clippy

- name: Set up rust (stable)
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable
components: rustfmt, clippy

- uses: actions/setup-python@v4
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: stable

- name: Install dependencies
run: |
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
. ./activate && \
pip install --upgrade pip
'
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin:v1.5.0 build --release --strip --manylinux 2014
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin:v1.1.0 build --release --strip --manylinux 2014
# Refresh in case any ownerships changed.
mv target target.docker && cp -r target.docker target
# Ensure an empty .cargo-lock file exists.
Expand Down

0 comments on commit 1c55fdb

Please sign in to comment.