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

Chore/updated gh actions #183

Merged
merged 6 commits into from
Feb 14, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/citation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/cli-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -43,7 +43,7 @@ jobs:
working-directory: cli

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
working-directory: cli

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -114,12 +114,12 @@ jobs:
# needs: ["features", "lint", "test"]
# steps:
# - name: Checkout branch
# uses: actions/checkout@v3
# uses: actions/checkout@v4
# with:
# path: branch

# - name: Checkout master
# uses: actions/checkout@v3
# uses: actions/checkout@v4
# with:
# ref: master
# path: master
Expand All @@ -136,4 +136,4 @@ jobs:
# run: cargo install cargo-semver-checks --locked

# - name: Check for semver-incompatibilities
# run: cargo semver-checks check-release --manifest-path branch/lace/Cargo.toml --baseline-root master/lace --verbose
# run: cargo semver-checks check-release --manifest-path branch/lace/Cargo.toml --baseline-root master/lace --verbose
6 changes: 3 additions & 3 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -41,7 +41,7 @@ jobs:

- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4

- name: Build with mdBook
run: mdbook build book -d ../html # Note that the destination path is relative to the book source, .i.e. `./book/../html`
Expand All @@ -63,4 +63,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1
58 changes: 34 additions & 24 deletions .github/workflows/python-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
working-directory: pylace

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
Expand All @@ -52,7 +52,7 @@ jobs:
working-directory: pylace

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -89,8 +89,8 @@ jobs:
matrix:
target: [x86_64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.8
Expand Down Expand Up @@ -122,9 +122,9 @@ jobs:
run: pytest pylace/tests

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}
path: dist

windows:
Expand All @@ -134,8 +134,8 @@ jobs:
matrix:
target: [x64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.8
Expand Down Expand Up @@ -166,9 +166,9 @@ jobs:
run: pytest pylace/tests

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-windows-${{ matrix.target }}
path: dist

macos:
Expand All @@ -178,8 +178,8 @@ jobs:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.8
Expand Down Expand Up @@ -211,24 +211,34 @@ jobs:
run: pytest pylace/tests

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}
path: dist

merge:
runs-on: ubuntu-latest
needs: [ macos, windows, linux ]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: wheels
pattern: wheels-*

test-mdbook-python:
name: Test MDBook Python Snippets
runs-on: ubuntu-latest
needs: [linux]
needs: [merge]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
path: dist

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

Expand All @@ -253,9 +263,9 @@ jobs:
test-mdbook-build:
name: Test MDBook Building
runs-on: ubuntu-latest
needs: [linux]
needs: [merge]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -287,9 +297,9 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/python-')
needs: [linux, windows, macos, test-mdbook-python, test-mdbook-build]
needs: [merge, test-mdbook-python, test-mdbook-build]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Branch
Expand All @@ -307,7 +317,7 @@ jobs:
DEPLOYING_VERSION=$(echo "$NEW_VERSION" | perl -lpe 's/^python-//')
find . -name Cargo.toml -exec tomlq -r .package.version {} \; | xargs -n 1 test "$DEPLOYING_VERSION" =
find . -name pyproject.toml -exec tomlq -r .project.version {} \; | xargs -n 1 test "$DEPLOYING_VERSION" =
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download-wheels
with:
name: wheels
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/rust-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -47,7 +47,7 @@ jobs:
working-directory: lace

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
working-directory: lace

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -119,12 +119,12 @@ jobs:
# needs: ["features", "lint", "test"]
# steps:
# - name: Checkout branch
# uses: actions/checkout@v3
# uses: actions/checkout@v4
# with:
# path: branch

# - name: Checkout master
# uses: actions/checkout@v3
# uses: actions/checkout@v4
# with:
# ref: master
# path: master
Expand All @@ -147,7 +147,7 @@ jobs:
runs-on: ubuntu-latest
needs: ["features", "lint", "test"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -163,7 +163,7 @@ jobs:
runs-on: ubuntu-latest
needs: ["features", "lint", "test"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install codedown
run: npm install -g codedown
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/rust-')
needs: ["compile-benchmarks", "features", "lint", "test", "test-mdbook-rust"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Branch
Expand Down
18 changes: 9 additions & 9 deletions pylace/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading