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 8bcce12
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
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'
- 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'
- name: Install deps and pytest
run: pip install --progress-bar off --user . pytest
- name: Run tests
Expand All @@ -28,7 +36,7 @@ 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'
- name: Install pypa/build
Expand Down

0 comments on commit 8bcce12

Please sign in to comment.