-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update drake and crocoddyl functions. gh workflow for ubuntu 22/pytho…
…n 3.10
- Loading branch information
fwiebe
committed
Jan 10, 2024
1 parent
83ab102
commit 8cb8667
Showing
19 changed files
with
571 additions
and
903 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Ubuntu22 Py3.10 | ||
|
||
on: # Run action when changes are pushed or pull requests are accepted | ||
push: | ||
branches-ignore: | ||
- 'docs' # Run on pushes to any branch except the doc hosting branch | ||
pull_request: | ||
branches-ignore: | ||
- 'docs' # Run on pull requests to any branch except the doc hosting branch | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# =========================== | ||
# | ||
# Ubuntu 22 | ||
# | ||
# =========================== | ||
ub20: | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
# Load environment variables from config.env ================= | ||
- name: Load config variables into env | ||
run: | | ||
grep -v '^#' config.env | tr -d "[:blank:]" >> $GITHUB_ENV | ||
# Setup ====================================================== | ||
- name: Set up Python 3.10 | ||
if: env.run_tests == 'true' | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10 | ||
- name: Install pytest | ||
if: env.run_tests == 'true' | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
# - name: Install coverage and emblem | ||
# if: env.run_tests == 'true' | ||
# run: | | ||
# pip install coverage | ||
# pip install emblem | ||
- name: Install Python dev headers | ||
if: env.run_tests == 'true' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python3-dev | ||
sudo apt install libpython3.10-dev | ||
- name: Install curl | ||
if: env.run_tests == 'true' | ||
run: | | ||
sudo apt-get install curl | ||
- name: Install drake dependencies | ||
if: env.run_tests == 'true' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends \ | ||
libpython3.10 libx11-6 libsm6 libxt6 libglib2.0-0 | ||
- name: Install project dependencies | ||
if: env.run_tests == 'true' | ||
run: | | ||
make install | ||
# Run unit tests ============================================= | ||
- name: Run tests | ||
if: env.run_tests == 'true' | ||
id: tests | ||
run: | | ||
# Run tests | ||
cd $codedir | ||
python -m pytest |
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ doc: | |
make -C $(DOC_ROOT) html | ||
|
||
tests: | ||
make -C $(PYTHON_ROOT) | ||
make -C $(PYTHON_ROOT) test |
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.