Skip to content

update version for codecov action #3

update version for codecov action

update version for codecov action #3

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package testing
on:
push:
branches: [master, pre-release]
pull_request:
branches: [master, pre-release]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
if: "!contains(github.event.head_commit.message, '[ci skip]')"
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: |
pip install -e '.[dev]'
python -m build
- name: Test with pytest
run: |
cd ./dist
pytest ../
- uses: actions/upload-artifact@v2
with:
name: EasyReflectometrys - Python ${{ matrix.python-version }}
path: ${{ github.workspace }}/dist/*