Skip to content

Commit

Permalink
Merge pull request #162 from odrling/github-actions
Browse files Browse the repository at this point in the history
Github actions workflow
  • Loading branch information
Neraste authored Feb 24, 2024
2 parents ca93b74 + 79af5c4 commit baf117e
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 98 deletions.
96 changes: 0 additions & 96 deletions .appveyor.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Tests

on:
pull_request:
push:
branches:
- master
- develop

jobs:
unit-tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: pip install -r requirements.txt -r requirements_dev.txt

- name: Run tests
run: python -m pytest -v

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

static-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'

- name: Install dependencies
run: pip install -r requirements.txt -r requirements_dev.txt

- name: Run import order checks
run: python -m isort . --check

- name: Run style checks
run: python -m black . --check

- name: Run PEP8 style checks
run: python -m flake8
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Any important notes regarding the update.

## Unreleased

### Added

- MacOS support.

## 1.8.1 - 2023-12-17

## 1.8.0 - 2022-11-23
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Dakara server

<!-- Badges are displayed for the develop branch -->
[![Appveyor CI Build status](https://ci.appveyor.com/api/projects/status/2wdia71y3dwsqywp/branch/develop?svg=true)](https://ci.appveyor.com/project/neraste/dakara-server/branch/develop)
[![Tests status](https://github.com/DakaraProject/dakara-server/actions/workflows/ci.yml/badge.svg)](https://github.com/DakaraProject/dakara-server/actions/workflows/ci.yml)
[![Codecov coverage analysis](https://codecov.io/gh/DakaraProject/dakara-server/branch/develop/graph/badge.svg)](https://codecov.io/gh/DakaraProject/dakara-server)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)

Server for the Dakara project.

Expand All @@ -20,7 +21,7 @@ Installation guidelines are provided over here:

* Python3, to make everything up and running (supported versions: 3.7, 3.8, 3.9, 3.10, and 3.11).

Linux and Windows are supported.
Linux, Mac and Windows are supported.

### Virtual environment

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Markdown>=3.3.0,<3.3.4; python_version < "3.8"
Markdown>=3.4.1,<3.5.0; python_version >= "3.8"
Pygments>=2.13.0,<2.14.0
python-decouple>=3.6,<3.7
setuptools>=68

0 comments on commit baf117e

Please sign in to comment.