Skip to content

Commit

Permalink
fix: ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
taharallouche authored and MohamedAmineChihi committed Nov 18, 2023
1 parent ea84eca commit 66a532e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
Empty file removed .github/workflows/lint.yml
Empty file.
38 changes: 21 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Truth_Tracking_Testing
name: crowd-label-CI

on:
push:
Expand All @@ -9,24 +9,28 @@ on:
- main

jobs:
test:
test-n-lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: 3.x

python-version: ${{ matrix.python-version }}
- name: Install dependencies
run:
python -m pip install --upgrade pip
pip install distutils
pip install -r requirements.txt
- name: Run tests
run: pytest -vvv --cov=./ --cov-report=xml
- name: Finalize
run: echo "Testing complete"
run: |
make install-dev
- name: Lint
run: |
make lint
- name: Type check
run: |
make typing-py
- name: Test with pytest
run: |
make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ lint/black: ## check style with black
typing-py: ## check typing
mypy size_matters --follow-imports=skip --ignore-missing-imports

lint: lint/flake8 lint/black typing-py
lint: lint/flake8 lint/black


test: ## run tests quickly with the default Python
Expand Down

0 comments on commit 66a532e

Please sign in to comment.