Skip to content

Commit

Permalink
Merge pull request #9 from tomato42/add-ci
Browse files Browse the repository at this point in the history
add initial CI config
  • Loading branch information
GiacomoPope authored Jul 18, 2024
2 parents 01d7a28 + e0667f2 commit e35f096
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Name: GitHub CI

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: py3.11
os: ubuntu-latest
python-version: "3.11"
- name: py3.12
os: ubuntu-latest
python-version: "3.12"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 10
- name: Verify git status
run: |
git status
git remote -v
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Display installed python package versions
run: |
pip list || :
- name: Run unit tests
run: |
python3 -m unittest discover

0 comments on commit e35f096

Please sign in to comment.