Skip to content

Update checkout action #2

Update checkout action

Update checkout action #2

Workflow file for this run

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