Skip to content

Commit

Permalink
tests | CI.yml for github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricelanghinrichs authored Nov 15, 2023
1 parent e897cd9 commit 8878347
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

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

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Setup Python # Set Python version
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Install pip and pytest
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
pip install pytest-cov codecov
- name: Test with pytest
run: |
pytest --cov=memocell --runslow
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4

0 comments on commit 8878347

Please sign in to comment.