Skip to content

Commit

Permalink
(actions) one file
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Mar 12, 2024
1 parent 6d90287 commit ee3e57f
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/python-3.10.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Python 3.10
name: Python

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

jobs:
build:
Expand All @@ -13,12 +9,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -27,9 +23,10 @@ jobs:
pip install -r tests/actions_requirements.txt
- name: Test with pytest
run: |
python3 --version || python --version
python --version
echo "import tests.actions_test" > test.py
coverage run --source models,examples test.py && coverage report
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == "3.12" }}

0 comments on commit ee3e57f

Please sign in to comment.