Skip to content

Commit

Permalink
add runner ci
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomcteixeira committed Apr 4, 2024
1 parent 42e139b commit 5ff6f9b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# tox enviroments that run on both pull requests and merge to main
name: ci

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
strategy:
# fail-fast: false
matrix:
python-version: ['3.10', '3.11']
# you can separate the tox-envs in different .yml files
# see version 0.10.1
# https://github.com/joaomcteixeira/python-project-skeleton/releases/tag/v0.10.1
# below the list of tox envs that you wish to include in the matrix
tox-envs: [docs, lint, build, test]

runs-on: pps

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install tox
- name: unit tests
run: tox -e ${{ matrix.tox-envs }}

0 comments on commit 5ff6f9b

Please sign in to comment.