This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish package to PyPi
2
2
on : [ push ]
3
3
jobs :
4
-
5
4
lint :
6
5
name : Lint
7
- runs-on : python:3.7.4
6
+ runs-on : ubuntu-latest
8
7
steps :
9
8
- 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
10
14
- name : Install flake8
11
15
run : pip install flake8
12
16
- name : Run lints
13
17
run : flake8 airflow_dbt/ tests/ setup.py
14
18
15
19
test :
16
20
name : Test
17
- runs-on : python:3.7.4
21
+ runs-on : ubuntu-latest
18
22
steps :
19
23
- uses : actions/checkout@master
24
+ - name : Set up Python 3.10
25
+ uses : actions/setup-python@v4
26
+ with :
27
+ python-version : ' 3.10'
20
28
- name : Install deps and pytest
21
29
run : pip install --progress-bar off --user . pytest
22
30
- name : Run tests
23
- run : fpython -m pytest tests/ -sv
31
+ run : pytest tests/ -sv
24
32
25
33
build-n-publish :
26
34
name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
27
35
runs-on : ubuntu-latest
28
36
steps :
29
37
- uses : actions/checkout@master
30
38
- name : Set up Python 3.10
31
- uses : actions/setup-python@v3
39
+ uses : actions/setup-python@v4
32
40
with :
33
41
python-version : ' 3.10'
34
42
- name : Install pypa/build
You can’t perform that action at this time.
0 commit comments