Skip to content

Commit

Permalink
add allow dirty flag, and manual run
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlow committed Sep 7, 2023
1 parent ddb32f8 commit 3a141cb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,6 @@ jobs:
run: cargo test --verbose
- if: "startsWith(github.ref, 'refs/tags/')"
name: Publish Crate
run: cargo publish --token ${CRATES_TOKEN}
run: cargo publish --token ${CRATES_TOKEN} --allow-dirty
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/cargo-build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test and Deploy
on: [workflow_dispatch]

jobs:
cargo-build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latests stable Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- name: Install deps
run: pip install numpy pandas seaborn xgboost=='1.6.1' scikit-learn toml
- run: |
cp README.md py-forust/README.md
cp LICENSE py-forust/LICENSE
- name: Update TOML
run: python scripts/remove-optional-deps.py
- name: Build test data
run: python scripts/make_resources.py
- name: Run tests
run: cargo test --verbose
- name: Publish Crate
run: cargo publish --token ${CRATES_TOKEN} --allow-dirty
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit 3a141cb

Please sign in to comment.