Skip to content

Commit

Permalink
Merge pull request #285 from fact-project/gh_actions
Browse files Browse the repository at this point in the history
Switch to github actions, add docker test, update depedencies
  • Loading branch information
maxnoe authored Nov 3, 2022
2 parents 1052753 + 2964354 commit 0099cc2
Show file tree
Hide file tree
Showing 4 changed files with 771 additions and 360 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: [push, pull_request]

env:
SHIFTHELPER_CONFIG: tests/resources/test_config.json

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]

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 --version
pip install -U pip poetry
poetry install
- name: Run tests
run: |
poetry run pyflakes shifthelper
poetry run python -m pytest
16 changes: 16 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test Docker Build

on: [push, pull_request]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Docker Image
uses: docker/build-push-action@v3
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 0099cc2

Please sign in to comment.