Skip to content

Commit

Permalink
Install python versions through OS-specific options
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterFendley committed Jun 14, 2024
1 parent d4bce8e commit 39f54c3
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/py3-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,22 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@
- name: Install python versions for Linux
if: runner.os == 'Linux'
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt-get install -y python3.7 python3.8
- name: Install python versions for MacOS
if: runner.os == 'macOS'
run: |
brew update
brew install [email protected] [email protected]
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.x'
- name: Install tox
run: pip install tox
- name: Run python tests
Expand Down

0 comments on commit 39f54c3

Please sign in to comment.