forked from mlco2/codecarbon
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.33 KB
/
package.yml
File metadata and controls
44 lines (42 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: package
on:
push:
branches: [master]
jobs:
build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Check versions
run: |
pip install -U pip requests
python3 .github/check_version.py
- name: Build pip package
run: |
pip install -U pip build
python3 -m build
- name: Archive Pypi artifacts
uses: actions/upload-artifact@v1
with:
name: pypi_dist
path: dist
# - uses: s-weigand/setup-conda@v1
# with:
# activate-conda: true
# conda-channels: conda-forge
# Conda package is now build by Conda-forge
# See https://github.com/conda-forge/codecarbon-feedstock
# - name: Build conda package
# run: |
# conda install conda-build conda-verify
# mkdir -p conda_dist
# conda build --python 3.8 .conda/ -c conda-forge --output-folder conda_dist
# - name: Archive Conda artifacts
# uses: actions/upload-artifact@v1
# with:
# name: conda_dist
# path: conda_dist