Skip to content

Commit

Permalink
feat: touch-up CI workflows (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Apr 19, 2023
1 parent cf97878 commit 5709ee2
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,50 @@
name: Test
name: CI

on:
push:
branches: [main]
branches:
- main
tags:
- "v*"
pull_request:
workflow_dispatch:

concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true

env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

jobs:

Test:
runs-on: ubuntu-latest

name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10"]

name: Python ${{ matrix.python }}

os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,all]
- name: Run pytest
run: pytest --ignore gosling/examples --ignore tools/altair --doctest-modules gosling
python-version: ${{ matrix.python-version }}
- run: |
pip install --upgrade hatch
hatch run test
Deploy:
runs-on: ubuntu-latest

if: contains(github.ref, 'tags')
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 5709ee2

Please sign in to comment.