Skip to content

Commit

Permalink
Migrate from Travis to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorjerse committed Jul 20, 2021
1 parent 9c1b361 commit f0cb5bb
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 73 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Resolwe Runtime Utils CI

on:
push:
branches:
- master
tags:
- "[0-9]+.[0-9]+.[0-9]+*"

pull_request:
schedule:
- cron: "30 2 * * *"

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
tox-env: [py36, py37, py38, py39, docs, linters, packaging]
include:
- tox-env: py36
python-version: 3.6
- tox-env: py37
python-version: 3.7
- tox-env: py38
python-version: 3.8
- tox-env: py39
python-version: 3.9
- tox-env: linters
python-version: 3.8
- tox-env: packaging
python-version: 3.8

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip tox
- name: Run Tests
run: >
tox -e ${{ matrix.tox-env }}
build:
runs-on: ubuntu-20.04
needs: test
if: "startsWith(github.ref, 'refs/tags')"

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install build
run: python -m pip install --user build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
73 changes: 0 additions & 73 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Added
-----
- Add support for Python 3.9

Changed
-------
- Migrate from Travis to Github Actions


==================
3.1.0 - 2021-02-09
Expand Down

0 comments on commit f0cb5bb

Please sign in to comment.