-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ' instaead of " in if statements
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,29 +21,29 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-22.04", "windows-2022", "macos-14"] | ||
os: ['ubuntu-22.04', 'windows-2022', 'macos-14'] | ||
steps: | ||
# Checkout the repository | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Make conda prefix directory (Windows) | ||
if: matrix.os == "windows-2022" | ||
if: matrix.os == 'windows-2022' | ||
shell: powershell | ||
run: | | ||
New-Item -ItemType Directory -Force -Path C:\c | ||
# https://github.com/conda-incubator/setup-miniconda?tab=readme-ov-file#use-a-different-environment-name-or-path | ||
- name: Setup Miniconda (Windows) | ||
if: matrix.os == "windows-2022" | ||
if: matrix.os == 'windows-2022' | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: "3.10" | ||
environment-file: environment.tensorflow.yml | ||
activate-environment: C:\c\tf | ||
|
||
- name: Setup Miniconda (not Windows) | ||
if: matrix.os != "windows-2022" | ||
if: matrix.os != 'windows-2022' | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: "3.10" | ||
|
@@ -58,20 +58,20 @@ jobs: | |
conda list | ||
- name: Build conda package (Windows) | ||
if: matrix.os == "windows-2022" | ||
if: matrix.os == 'windows-2022' | ||
shell: powershell | ||
run: | | ||
conda build --debug .conda.tensorflow --output-folder C:\c\build.tensorflow -c conda-forge | ||
- name: Build conda package (Ubuntu) | ||
if: matrix.os == "ubuntu-22.04" | ||
if: matrix.os == 'ubuntu-22.04' | ||
shell: bash -l {0} | ||
run: | | ||
conda build --debug .conda.tensorflow --output-folder build.tensorflow -c conda-forge | ||
# https://github.com/anaconda/anaconda-client/issues/529 | ||
- name: Upload to Anaconda (Windows) | ||
if: matrix.os == "windows-2022" | ||
if: matrix.os == 'windows-2022' | ||
env: | ||
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }} | ||
shell: powershell | ||
|
@@ -81,7 +81,7 @@ jobs: | |
anaconda logout | ||
- name: Upload to Anaconda (Ubuntu) | ||
if: matrix.os == "ubuntu-22.04" | ||
if: matrix.os == 'ubuntu-22.04' | ||
env: | ||
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }} | ||
shell: bash -l {0} | ||
|
@@ -91,13 +91,13 @@ jobs: | |
anaconda logout | ||
- name: Build conda package (MacOS) | ||
if: matrix.os == "macos-14" | ||
if: matrix.os == 'macos-14' | ||
shell: bash -l {0} | ||
run: | | ||
conda build --debug .conda.tensorflow_macos --output-folder build.tensorflow_macos -c conda-forge | ||
- name: Upload to Anaconda (MacOS) | ||
if: matrix.os == "macos-14" | ||
if: matrix.os == 'macos-14' | ||
env: | ||
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }} | ||
shell: bash -l {0} | ||
|