Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github actions: migrate from travis #15

Merged
merged 1 commit into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

jobs:
test:
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
os: ["ubuntu-22.04"]
include:
- python-version: "3.6"
os: "ubuntu-20.04"

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Include ppa repository
run: sudo add-apt-repository ppa:deadsnakes/ppa
- name: Set up Python ${{ matrix.python-version }}
run: |
sudo apt-get install python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-distutils
sudo update-alternatives --install /usr/bin/python3 python3 `which python${{ matrix.python-version }}` 1
sudo update-alternatives --install /usr/bin/python3-config python3-config `which python${{ matrix.python-version }}-config` 1
- name: Upgrade setuptools for Python 3.12
if: matrix.python-version == '3.12'
run: |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py "setuptools > 69.0"
- name: Install requirements
run: python3 -m pip install -r requirements.txt
- name: Install development requirements
run: python3 -m pip install -r requirements_dev.txt
- name: Install postgresql
run: sudo apt-get install postgresql
- name: Test
run: ./scripts/test
- uses: codecov/codecov-action@v1
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build status](https://api.travis-ci.com/em92/quakelive-local-ratings.svg?branch=master)](https://travis-ci.com/github/em92/quakelive-local-ratings)
![Build status](https://github.com/em92/quakelive-local-ratings/actions/workflows/build.yml/badge.svg)
[![Coverage](https://codecov.io/gh/em92/quakelive-local-ratings/branch/master/graph/badge.svg)](https://codecov.io/gh/em92/quakelive-local-ratings)

# quakelive-local-ratings (qllr)
Expand Down
Loading