Skip to content

Commit

Permalink
validate python version
Browse files Browse the repository at this point in the history
  • Loading branch information
mavenlin committed Dec 4, 2023
1 parent 07dc4ec commit 3363b9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release for Macos
name: Release for Windows

on: [push]

Expand All @@ -18,6 +18,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Validate version
run: |
$pythonVersion = (python --version)
if ("Python ${{ matrix.python-version }}" -ne "$pythonVersion"){
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}"
exit 1
}
$pythonVersion
shell: pwsh
- name: Build
run: |
pip install -r requirements.txt
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ tensorflow-probability
jinja2
absl-py
numpy
pyscf
regex
jaxtyping
autofd

0 comments on commit 3363b9f

Please sign in to comment.