Update checkout action #2
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
name: Python Pipenv Test | |
on: | |
push: | |
branches: | |
- main # Replace with the name of your default branch if it's different | |
pull_request: | |
branches: | |
- main # Replace with the name of your default branch if it's different | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: [3.8, 3.9] # Add other Python versions if needed | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pipenv | |
run: | | |
pip install pipenv | |
- name: Install dependencies | |
run: | | |
pipenv install --dev | |
- name: Run test.py script | |
run: | | |
pipenv run python test.py |