Skip to content

Commit 361f832

Browse files
authored
Update github-ci.yml
1 parent 179ef21 commit 361f832

File tree

1 file changed

+34
-24
lines changed

1 file changed

+34
-24
lines changed

.github/workflows/github-ci.yml

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@ on:
88
jobs:
99
setup:
1010
runs-on: ubuntu-latest
11-
outputs:
12-
python-version: ${{ steps.python-version.outputs.python-version }}
1311
steps:
1412
- name: Checkout code
15-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1614

1715
- name: Set up Python
18-
id: python-version
19-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
2017
with:
2118
python-version: 3.8
2219

@@ -25,29 +22,30 @@ jobs:
2522
python -m venv venv
2623
venv/bin/python -m pip install --upgrade pip
2724
venv/bin/pip install exifread
28-
- name: Upload venv
29-
uses: actions/upload-artifact@v2
30-
with:
31-
name: venv
32-
path: venv
3325
3426
build:
3527
runs-on: ubuntu-latest
3628
needs: setup
3729
steps:
3830
- name: Checkout code
39-
uses: actions/checkout@v2
31+
uses: actions/checkout@v3
4032

41-
- name: Download venv
42-
uses: actions/download-artifact@v2
33+
- name: Set up Python
34+
uses: actions/setup-python@v4
4335
with:
44-
name: venv
36+
python-version: 3.8
37+
38+
- name: Install dependencies
39+
run: |
40+
python -m venv venv
41+
venv/bin/python -m pip install --upgrade pip
42+
venv/bin/pip install exifread
4543
4644
- name: Build
4745
run: echo "Building"
4846

4947
- name: Save artifacts
50-
uses: actions/upload-artifact@v2
48+
uses: actions/upload-artifact@v3
5149
with:
5250
name: main.py
5351
path: main.py
@@ -57,15 +55,21 @@ jobs:
5755
needs: build
5856
steps:
5957
- name: Checkout code
60-
uses: actions/checkout@v2
58+
uses: actions/checkout@v3
6159

62-
- name: Download venv
63-
uses: actions/download-artifact@v2
60+
- name: Set up Python
61+
uses: actions/setup-python@v4
6462
with:
65-
name: venv
63+
python-version: 3.8
64+
65+
- name: Install dependencies
66+
run: |
67+
python -m venv venv
68+
venv/bin/python -m pip install --upgrade pip
69+
venv/bin/pip install exifread
6670
6771
- name: Download artifacts
68-
uses: actions/download-artifact@v2
72+
uses: actions/download-artifact@v3
6973
with:
7074
name: main.py
7175

@@ -78,12 +82,18 @@ jobs:
7882
if: github.ref == 'refs/heads/main'
7983
steps:
8084
- name: Checkout code
81-
uses: actions/checkout@v2
85+
uses: actions/checkout@v3
8286

83-
- name: Download venv
84-
uses: actions/download-artifact@v2
87+
- name: Set up Python
88+
uses: actions/setup-python@v4
8589
with:
86-
name: venv
90+
python-version: 3.8
91+
92+
- name: Install dependencies
93+
run: |
94+
python -m venv venv
95+
venv/bin/python -m pip install --upgrade pip
96+
venv/bin/pip install exifread
8797
8898
- name: Deploy to production
8999
run: echo "Deploying to production"

0 commit comments

Comments
 (0)