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

Commit

Permalink
ci: use ubuntu image to run all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
dinigo committed Sep 5, 2022
1 parent 89e842f commit 82f4ce7
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
name: Publish package to PyPi
on: [ push ]
jobs:

lint:
name: Lint
runs-on: python:3.7.4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- uses: actions/checkout@master
- name: Install flake8
run: pip install flake8
- name: Run lints
run: flake8 airflow_dbt/ tests/ setup.py

test:
name: Test
runs-on: python:3.7.4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install deps and pytest
run: pip install --progress-bar off --user . pytest
- name: Run tests
Expand All @@ -28,9 +38,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install pypa/build
run: pip install build --user
- name: Build a binary wheel and a source tarball
Expand Down

0 comments on commit 82f4ce7

Please sign in to comment.