-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from AllenNeuralDynamics/CICD_and_minor_updates
CICD updates
- Loading branch information
Showing
10 changed files
with
237 additions
and
93 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 |
---|---|---|
|
@@ -7,33 +7,30 @@ on: | |
|
||
jobs: | ||
build-and-release: | ||
runs-on: windows-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' # Fetch all history to manage tags correctly | ||
|
||
- name: Pull latest changes | ||
run: git pull origin main | ||
fetch-depth: '0' | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 # Corrected from checkout to setup-python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine build | ||
- name: Install project | ||
run: pip install -e . # Install your project in editable mode | ||
|
||
- name: Extract version from the package | ||
id: get_version | ||
shell: bash | ||
run: | | ||
echo "RELEASE_VERSION=$(python -c 'import parallax; print(parallax.__version__)')" >> $GITHUB_ENV | ||
RELEASE_VERSION=$(python -c 'import parallax; print(parallax.__version__)') | ||
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV | ||
echo "Extracted RELEASE_VERSION: $RELEASE_VERSION" | ||
- name: Configure Git Account | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Hanna" | ||
- name: Create Git tag | ||
run: | | ||
|
@@ -50,6 +47,14 @@ jobs: | |
draft: false | ||
prerelease: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine build | ||
- name: Install project | ||
run: pip install -e . | ||
|
||
- name: Build package | ||
run: | | ||
python -m build | ||
|
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
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
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
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
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
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
Oops, something went wrong.