Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 82f4ce7

Browse files
committed
ci: use ubuntu image to run all jobs
1 parent 89e842f commit 82f4ce7

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/pypi.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
name: Publish package to PyPi
22
on: [ push ]
33
jobs:
4-
54
lint:
65
name: Lint
7-
runs-on: python:3.7.4
6+
runs-on: ubuntu-latest
87
steps:
98
- uses: actions/checkout@master
9+
- name: Set up Python 3.10
10+
uses: actions/setup-python@v4
11+
with:
12+
python-version: '3.10'
13+
cache: 'pip'
14+
- uses: actions/checkout@master
1015
- name: Install flake8
1116
run: pip install flake8
1217
- name: Run lints
1318
run: flake8 airflow_dbt/ tests/ setup.py
1419

1520
test:
1621
name: Test
17-
runs-on: python:3.7.4
22+
runs-on: ubuntu-latest
1823
steps:
1924
- uses: actions/checkout@master
25+
- name: Set up Python 3.10
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.10'
29+
cache: 'pip'
2030
- name: Install deps and pytest
2131
run: pip install --progress-bar off --user . pytest
2232
- name: Run tests
@@ -28,9 +38,10 @@ jobs:
2838
steps:
2939
- uses: actions/checkout@master
3040
- name: Set up Python 3.10
31-
uses: actions/setup-python@v3
41+
uses: actions/setup-python@v4
3242
with:
3343
python-version: '3.10'
44+
cache: 'pip'
3445
- name: Install pypa/build
3546
run: pip install build --user
3647
- name: Build a binary wheel and a source tarball

0 commit comments

Comments
 (0)