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

Fix GitHub actions warnings #95

Merged
merged 2 commits into from
Dec 1, 2022
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
36 changes: 36 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
version: 2
updates:

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
open-pull-requests-limit: 20
target-branch: master

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
open-pull-requests-limit: 20
target-branch: master
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

name: Python Release Build
on:
pull_request:
branches: ["master"]
push:
tags: ["*-rc*"]
branches: ["master"]
Expand All @@ -25,15 +27,15 @@ jobs:
generate-license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Generate license file
run: python ./dev/create_license.py
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: python-wheel-license
path: LICENSE.txt
Expand All @@ -48,9 +50,9 @@ jobs:
python-version: ["3.10"]
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -65,7 +67,7 @@ jobs:

- run: rm LICENSE.txt
- name: Download LICENSE.txt
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: python-wheel-license
path: .
Expand All @@ -82,7 +84,7 @@ jobs:
run: find target/wheels/

- name: Archive wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: target/wheels/*
Expand All @@ -92,10 +94,10 @@ jobs:
name: Manylinux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: rm LICENSE.txt
- name: Download LICENSE.txt
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: python-wheel-license
path: .
Expand All @@ -108,7 +110,7 @@ jobs:
ghcr.io/pyo3/maturin:v0.14.2 \
build --release --manylinux 2014 --locked
- name: Archive wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: target/wheels/*
Expand All @@ -119,7 +121,7 @@ jobs:
# needs: [build-manylinux, build-python-mac-win]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v2
# - uses: actions/download-artifact@v3
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- python-version: "3.7"
toolchain: "stable"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -54,12 +54,12 @@ jobs:
override: true

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Cache Cargo
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cargo
key: cargo-cache-${{ steps.rust-toolchain.outputs.rustc_hash }}-${{ hashFiles('Cargo.lock') }}
Expand Down