Skip to content

Commit

Permalink
Migrate from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seleznev committed Oct 31, 2022
1 parent 18b5e84 commit a14774d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 27 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on: [push]

permissions:
contents: read

jobs:
tox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox codecov
pip install -r requirements.txt
- name: Unit tests
run: |
tox -e py
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3

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
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions docker-compose.yml

This file was deleted.

0 comments on commit a14774d

Please sign in to comment.