Skip to content

Commit

Permalink
Adopt GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xymy committed Nov 19, 2023
1 parent b5d60ad commit a38d9ae
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test

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

jobs:
test:
name: test - ${{ matrix.os }} - ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install pre-commit tox
- name: Test this project
run: |
pre-commit run -a
tox run

0 comments on commit a38d9ae

Please sign in to comment.