Skip to content

Commit

Permalink
Create python-app.yml (#26)
Browse files Browse the repository at this point in the history
* Create python-app.yml

* Update python-app.yml

* Update README.rst

* Update python-app.yml
  • Loading branch information
josuebrunel authored Jan 26, 2024
1 parent a8baa09 commit 921dfae
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest coverage lxml python-dateutil
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
python -m coverage run --source=pysxm -m pytest -vvs tests/
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Simple XML Python Marshaller
============================

.. image:: https://travis-ci.org/josuebrunel/pysxm.svg?branch=master
:target: https://travis-ci.org/josuebrunel/pysxm
.. image:: https://github.com/josuebrunel/pysxm/actions/workflows/python-app.yml/badge.svg
:target: https://github.com/josuebrunel/pysxm/actions/workflows/python-app.yml
.. image:: https://coveralls.io/repos/github/josuebrunel/pysxm/badge.svg?branch=master
:target: https://coveralls.io/github/josuebrunel/pysxm?branch=master
.. image:: http://pepy.tech/badge/pysxm
Expand Down

0 comments on commit 921dfae

Please sign in to comment.