Skip to content

Commit

Permalink
Add push workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquebastos committed Feb 6, 2024
1 parent 9663225 commit 2ca7dec
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run linting and tests when pushing code.

on: [push]

jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: pre-commit/[email protected]

testing:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Test with pytest
run: poetry run pytest

0 comments on commit 2ca7dec

Please sign in to comment.