Skip to content

Commit baa42aa

Browse files
Merge pull request #44 from cassidymwagner/39-get-rid-of-github-action-on-different-operating-systems
39 get rid of GitHub action on different operating systems
2 parents 67e15ce + ca94897 commit baa42aa

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
python-version: ["3.10", "3.11", "3.12"]
26-
os: [ubuntu-latest, macOS-latest, windows-latest]
26+
os: [ubuntu-latest]
2727

2828
steps:
2929
- uses: actions/checkout@v4

.github/workflows/draft-pdf.yml

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17+
- name: Checkout for PRs
18+
if: ${{ github.event_name == 'pull_request' }}
19+
uses: actions/checkout@v4
20+
with:
21+
repository: ${{ github.event.pull_request.head.repo.full_name }}
22+
ref: ${{ github.event.pull_request.head.ref }}
1723
- name: Build draft PDF
1824
uses: openjournals/openjournals-draft-action@master
1925
with:

.github/workflows/publish-to-test-pypi.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- main
47

58
jobs:
69
build:
@@ -22,7 +25,7 @@ jobs:
2225
- name: Build a binary wheel and a source tarball
2326
run: python3 -m build
2427
- name: Store the distribution packages
25-
uses: actions/upload-artifact@v3
28+
uses: actions/upload-artifact@v4
2629
with:
2730
name: python-package-distributions
2831
path: dist/
@@ -42,7 +45,7 @@ jobs:
4245

4346
steps:
4447
- name: Download all the dists
45-
uses: actions/download-artifact@v3
48+
uses: actions/download-artifact@v4
4649
with:
4750
name: python-package-distributions
4851
path: dist/
@@ -63,7 +66,7 @@ jobs:
6366

6467
steps:
6568
- name: Download all the dists
66-
uses: actions/download-artifact@v3
69+
uses: actions/download-artifact@v4
6770
with:
6871
name: python-package-distributions
6972
path: dist/
@@ -107,7 +110,7 @@ jobs:
107110

108111
steps:
109112
- name: Download all the dists
110-
uses: actions/download-artifact@v3
113+
uses: actions/download-artifact@v4
111114
with:
112115
name: python-package-distributions
113116
path: dist/

paper/paper.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)