Skip to content

Commit

Permalink
Upgrade setup-python action (#4781)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Sep 9, 2022
1 parent 9a3737e commit 83aea27
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 31 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ jobs:
with:
toolchain: nightly-2022-08-22
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'py-polars/build.requirements.txt'
- name: Set up R
uses: r-lib/actions/setup-r@v1
with:
Expand All @@ -32,8 +34,7 @@ jobs:
env:
RUSTFLAGS: -C embed-bitcode
run: |
python -m pip install --upgrade pip
pip install virtualenv
pip install --upgrade pip
python -m venv venv
source venv/bin/activate
pip install -r py-polars/build.requirements.txt
Expand All @@ -50,4 +51,3 @@ jobs:
python main.py on_strings
echo "ON CATEGORICALS"
python main.py
9 changes: 5 additions & 4 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ jobs:
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "py-polars/build.requirements.txt"
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'py-polars/build.requirements.txt'
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-py-mac-universal2-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
rustup target add aarch64-apple-darwin
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Prepare maturin publish
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-py-release-manylinux-lts-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.7'
architecture: x64
- name: Prepare maturin publish
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-py-release-manylinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
rm py-polars/README.md
cp README.md py-polars/README.md
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.7'
architecture: x64

- name: publish x64_64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-py-release-windows-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
with:
toolchain: nightly-2022-08-22
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pip
pip install maturin==0.13.2
- name: Publish wheel
shell: bash
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:
toolchain: nightly-2022-08-22
components: rust-docs
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'py-polars/docs/requirements-docs.txt'
- name: Install dependencies
working-directory: py-polars/docs
run: |
python -m pip install --upgrade pip
pip install -r py-polars/docs/requirements-docs.txt
pip install --upgrade pip
pip install -r requirements-docs.txt
- name: Build python reference
working-directory: py-polars/docs
run: make html
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/docs_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ jobs:
test:
name: Docs check
runs-on: ubuntu-latest
defaults:
run:
working-directory: py-polars/docs

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'py-polars/docs/requirements-docs.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r py-polars/docs/requirements-docs.txt
- name: Build python reference
pip install --upgrade pip
pip install -r requirements-docs.txt
- name: Build Python reference
env:
SPHINXOPTS: -W
working-directory: py-polars/docs
run: make html
6 changes: 4 additions & 2 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
toolchain: nightly-2022-08-22
components: rustfmt, clippy
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'py-polars/build.requirements.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pip
pip install -r build.requirements.txt
- name: Run formatting checks
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test-windows-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jobs:
with:
toolchain: nightly-2022-08-22
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'py-polars/build.requirements.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pip
pip install -r build.requirements.txt
- name: Run tests
shell: bash
Expand Down

0 comments on commit 83aea27

Please sign in to comment.