Skip to content

Commit

Permalink
Update actions versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Jul 26, 2023
1 parent e310f57 commit 19bc7cd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@ jobs:
- uses: actions/checkout@v3

- name: setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
default: true

- name: install cargo tarpaulin
uses: taiki-e/install-action@v1
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,25 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable

- name: setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: install dependencies
run: |
pip install tox
sudo apt install doxygen
- name: build documentation
run: tox -e docs

- name: put documentation in the website
run: |
git clone https://github.com/$GITHUB_REPOSITORY --branch gh-pages gh-pages
Expand All @@ -45,6 +49,7 @@ jobs:
rm -rf latest
mv ../docs/build/html latest
fi
- name: deploy to gh-pages
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
default: true
target: ${{ matrix.rust-target }}

- name: install python dependencies
Expand Down Expand Up @@ -85,11 +83,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
default: true
target: x86_64-unknown-linux-gnu

- name: install python dependencies
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,9 @@ jobs:
python-version: "3.11"

- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust-version }}
default: true
target: ${{ matrix.rust-target }}

- name: install valgrind
Expand Down Expand Up @@ -109,12 +107,9 @@ jobs:
- uses: actions/checkout@v3

- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
default: true
target: x86_64-unknown-linux-gnu

- name: Setup sccache
uses: mozilla-actions/[email protected]
Expand Down Expand Up @@ -145,11 +140,9 @@ jobs:
- uses: actions/checkout@v3

- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust-version }}
default: true
target: ${{ matrix.rust-target }}

- name: install dependencies
Expand Down

0 comments on commit 19bc7cd

Please sign in to comment.