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

Commit d59b0ab

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

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/pypi.yaml

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
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+
- uses: actions/checkout@master
1014
- name: Install flake8
1115
run: pip install flake8
1216
- name: Run lints
1317
run: flake8 airflow_dbt/ tests/ setup.py
1418

1519
test:
1620
name: Test
17-
runs-on: python:3.7.4
21+
runs-on: ubuntu-latest
1822
steps:
1923
- uses: actions/checkout@master
24+
- name: Set up Python 3.10
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.10'
2028
- name: Install deps and pytest
2129
run: pip install --progress-bar off --user . pytest
2230
- name: Run tests
23-
run: fpython -m pytest tests/ -sv
31+
run: pytest tests/ -sv
2432

2533
build-n-publish:
2634
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2735
runs-on: ubuntu-latest
2836
steps:
2937
- uses: actions/checkout@master
3038
- name: Set up Python 3.10
31-
uses: actions/setup-python@v3
39+
uses: actions/setup-python@v4
3240
with:
3341
python-version: '3.10'
3442
- name: Install pypa/build

0 commit comments

Comments
 (0)