Skip to content

Commit

Permalink
add minimal ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrenodet committed Sep 19, 2024
1 parent 46ee22d commit e2f2b9f
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 120 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: main

on: [push, pull_request]

jobs:
lint:

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

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements.txt
tests-requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f tests-requirements.txt ]; then pip install -r tests-requirements.txt; fi
- name: Check code quality with isort, black and flake8
run: |
make quality
test:

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

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements.txt
tests-requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f tests-requirements.txt ]; then pip install -r tests-requirements.txt; fi
- run: make test
112 changes: 0 additions & 112 deletions .gitlab-ci.yml

This file was deleted.

File renamed without changes.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include requirements.txt
include LICENSE
include README.md
8 changes: 0 additions & 8 deletions setup.cfg

This file was deleted.

0 comments on commit e2f2b9f

Please sign in to comment.