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 d59b0ab
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
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
run: fpython -m pytest tests/ -sv
run: pytest tests/ -sv

build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
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 d59b0ab

Please sign in to comment.