Skip to content

Commit

Permalink
use container
Browse files Browse the repository at this point in the history
  • Loading branch information
ssolson committed Oct 19, 2023
1 parent 869caeb commit 66a76ad
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,21 @@ jobs:
name: pip-${{ matrix.os }}/${{ matrix.python-version }}
needs: [prepare-cache]
runs-on: ${{ matrix.os }}
container:
image: continuumio/miniconda3:latest
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python-version: [3.8, 3.9]

steps:
- uses: conda-incubator/setup-miniconda@v2
# - uses: conda-incubator/setup-miniconda@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}

- name: Set up Git repository
uses: actions/checkout@v2
Expand All @@ -171,20 +173,6 @@ jobs:
name: data
path: ~/.cache/mhkit

- name: Install Tcl/Tk
shell: bash
run: |
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
sudo apt-get update
sudo apt-get install -y tk
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
brew install tcl-tk
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
curl -L -O https://downloads.activestate.com/ActiveTcl/releases/8.6.10.0/ActiveTcl-8.6.10.0-MSWin32-x86_64-403863.exe
./ActiveTcl-8.6.10.0-MSWin32-x86_64-403863.exe /quiet InstallDir=C:\Tcl
echo "C:\Tcl\bin" >> $GITHUB_PATH
fi

- name: Update and install packages
run: |
python -m pip install --upgrade pip wheel
Expand Down

0 comments on commit 66a76ad

Please sign in to comment.