Skip to content

Commit 6785d87

Browse files
Update python-app.yml
1 parent acde442 commit 6785d87

File tree

1 file changed

+11
-35
lines changed

1 file changed

+11
-35
lines changed

.github/workflows/python-app.yml

+11-35
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,28 @@
1-
name: Test Setup Python with Cache
1+
name: Test Python Versions
22

3-
on:
4-
push:
5-
branches:
6-
- test-pr-896
7-
pull_request:
8-
branches:
9-
- main
3+
on: [push, pull_request]
104

115
jobs:
12-
build:
13-
runs-on: ${{ matrix.os }}
6+
test:
7+
runs-on: ubuntu-latest
148
strategy:
159
matrix:
16-
os: [ubuntu-latest, windows-latest, macos-latest]
17-
python-version: ["3.12.3"]
18-
cache: [pip, poetry, pipenv]
19-
10+
python-version: ['3.13', '3.13t']
2011
steps:
2112
- name: Checkout repository
2213
uses: actions/checkout@v4
2314

24-
- name: Set up Poetry
25-
if: matrix.cache == 'poetry'
26-
run: |
27-
curl -sSL https://install.python-poetry.org | python3 -
28-
echo "$HOME/.local/bin" >> $GITHUB_PATH
29-
30-
- name: Setup Python
31-
uses: priyagupta108/[email protected]
15+
- name: Set up Python ${{ matrix.python-version }}
16+
# uses: actions/setup-python@v4
17+
uses: priya-kinthali/setup-python@freethread-pr-319
3218
with:
3319
python-version: ${{ matrix.python-version }}
34-
cache: ${{ matrix.cache }}
3520

36-
- name: Cache dependencies with pip
37-
if: matrix.cache == 'pip'
21+
- name: Install dependencies
3822
run: |
3923
python -m pip install --upgrade pip
4024
pip install -r requirements.txt
4125
42-
- name: poetry install
43-
if: matrix.cache == 'poetry'
44-
run: |
45-
poetry install
46-
47-
- name: Cache dependencies with Pipenv
48-
if: matrix.cache == 'pipenv'
26+
- name: Run tests
4927
run: |
50-
pip install --upgrade pip
51-
pip install pipenv
52-
pipenv install
28+
python test_script.py

0 commit comments

Comments
 (0)