Skip to content

Commit

Permalink
Updates workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
timonweb committed Jun 19, 2022
1 parent 302538f commit 022d47b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/python-package.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test code

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
with:
token: ${{ secrets.GITHUB_TOKEN }}

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

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Test with tox
run: |
poetry run tox

0 comments on commit 022d47b

Please sign in to comment.