Skip to content

Commit

Permalink
Create python-script.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonAmable authored Feb 2, 2024
1 parent a7ce879 commit 3f2114e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/python-script.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Python Script

on:
- push

jobs:
run-script:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run script
run: python test1.py

0 comments on commit 3f2114e

Please sign in to comment.