Skip to content

Commit

Permalink
Adding python env configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpalms committed Jul 29, 2023
1 parent 3671115 commit 381e012
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/installation_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@ jobs:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
installation-option: ['basic', 'stable-baselines', 'stable-baselines3', 'ray-rllib']
pip-version: ['23.0.1', '']
python-packages-version: ['default', 'latest']

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

- name: Pre-install packages needed because of setup.py deprecation
- name: Setup environment configuration (default or latest)
run: |
pip list
python3 -m pip install wheel==0.38.4
if [ "${{ matrix.pip-version }}" == '' ]; then
if [ "${{ matrix.pip-version }}" == 'latest' ]; then
python3 -m pip install -U pip
else
python3 -m pip install pip==${{ matrix.pip-version }}
python3 -m pip install -U setuptools
fi
pip list
- name: Pre-install packages needed because of setup.py deprecation
run: |
echo "No action for now"
- name: Define Package Path
id: set_package_path
Expand All @@ -47,11 +49,11 @@ jobs:
- name: Checkout Main Branch and Install Package
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Checkout Pull Request Branch and Install Package
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

Expand Down

0 comments on commit 381e012

Please sign in to comment.